-
-
Notifications
You must be signed in to change notification settings - Fork 811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Network Inspect not working with RN 0.60.0 #365
Comments
Also having the same problem. Can't debug requests atm. Getting below with no info at all to help debug
|
Any updates? This is one of the main reasons I use React Native Debugger... |
We have major update from RN 0.53 to 0.60. I expected react-native-debugger Network debugging to work but it doesn't in newer version of RN. That's weird, every request ends up with "This request has no response data available." |
Fixed for me after upgrading react-native-debugger to v0.9.12. Thanks! |
This issue persists for me with RN 0.60.3 and debugger 0.9.12. I did a brew reinstall to get the latest. The responses are all empty, thus I can't debug any network traffic today. |
Confirm that issues is fixed in v0.9.12. RN v0.60.4. Thank you @jhen0409! |
Running RN v0.60.5 and debugger v0.9.12 and this issue is still happening. |
Same issue here with RN v0.60.5 and debugger v0.9.12, the debugger intercepts the request, it never gets a response and the API never gets the request either while network is turned on inside the debugger. macOs, android emulator Edit: best alternative I found is Reactotron |
Same issue RN v0.60.5 and debugger v0.9.12 |
Same issue with RN v.0.61.2 and debugger v0.10.2 |
Same issue (RN v.0.61.2 and debugger v0.10.2). Got it working with the following temporary solution. |
#382 (comment) seems to work for now. |
@santtul thanks! |
Getting this error now |
Thanks @santtul, This worked for me. |
@jhen0409 should we reopen this? For me it is still not working on 0.10.5 |
|
please add this line in index.js file |
@jhen0409 it's working now as follows (RN v.0.61.2 and debugger v0.10.5): |
This is still not working for me on 0.10.5. When I add |
add
|
Thank you so much! You saved my day |
Put this code inside
|
This can cause an infinite loop of requests |
In my case, this solution is work. |
Okay this is really confusing - I'm having the exact opposite of this problem, my Axios calls only work if the network inspector is enabled. |
I'm having the same issue with the latest version, That fix in the index.js works well, but I still cant see the responses, is any workaround for that? |
I have a similar issue to @NashidB. I added the changes to Android seems fine, but iOS breaks both in a simulator and on a real device. This is also happening in Release builds, so it's not just limited to Debug. React Native: 0.61.5 |
any fix for ios? |
Why is this issue closed? This problem still persist. I've just switched from a library that makes REST calls, which was working with network inspect, to a GraphQL-generated code, and with network inspect the GraphQL query throws errors like this:
When I don't have network inspect enabled, it works (but I can't see the request/response) |
For me it sometimes works and sometimes not. From my observations looks like apollo-client is doing OK with network inspect, it is other network calls which are issue for us. So if I enable network inspect after my app is loaded (lets say on dashboard) then network inspect works fine... If I enable it before login, I will not get past login... So I suspect it has issue just with some specific library... |
For us, Apollo Client will not return a response body when the network inspect enabled in the debugger. We are running with RN v0.63.4 and RN Debugger v0.11.7. However Axios works just fine for the same GQL POST body and headers if network inspect is enabled. |
@robnewton have you find solution for this? any work around to this? |
+1 |
Since updating our project's version of react-native to 0.60.0, the Network Inspect feature in react-native-debugger has stopped working properly.
With Network Inspect disabled, our application can successfully make API requests as normal. With Network Inspect enabled, our api requests are being returned with HTTP 200 statuses from our backend APIs, but they do not include a response payload. See screenshots for an example.
React Native Debugger app version: 0.9.10
React Native version: 0.60.0
Platform: Tested iOS only
Is real device of platform: Simulator
Operating System: macOS
The text was updated successfully, but these errors were encountered: