Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
744 views
in Technique[技术] by (71.8m points)

xmlhttprequest - React Native Network Request Failed randomly (HTTPS + URL)

So I have this strange error with React Native, where randomly network requests hangs.

This can be provoked by either listening to a remote audio file, or creating a new user and logging into the app.

This is an issue for all React Native versions at least over 0.59 (havent tested below that).

So to give a bit of background:

When I navigate to a new tab, I load data for that tab. Randomly it will just hang, and give a Network Request Failed with no further information. Once that arrives, and I navigate from and back to the screen it starts working again, until a couple minutes later where it will randomly hang one request.

Tried putting an aggressive timeout on it to provoke an early escape, but seems the native layer has to throw a Network Request Failed for it to start working again.

I've been biting nails for weeks trying to debug this issue, as it's limiting the release of the application.

question from:https://stackoverflow.com/questions/65836401/react-native-network-request-failed-randomly-https-url

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...