Network Inspect not working with RN 0.60.0
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
Also having the same problem. Can't debug requests atm. Getting below with no info at all to help debug
Unexpected token o in JSON at position 1
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.
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."
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.
Add this to your app init:
GLOBAL.Blob = null
https://github.com/jhen0409/react-native-debugger/issues/382#issuecomment-544226529 seems to work for now.
@santtul thanks! it is helped me!
https://github.com/jhen0409/react-native-debugger/blob/master/docs/network-inspect-of-chrome-devtools.md#how-it-works
Getting this error now
TypeError: Cannot read property 'prototype' of null
Thanks @santtul, This worked for me.
@jhen0409 should we reopen this? For me it is still not working on 0.10.5
if (window.__REMOTEDEV__) {
global.Blob = null;
}
please add this line in index.js file GLOBAL.Blob = null and remove this line GLOBAL.XMLHttpRequest = GLOBAL.originalXMLHttpRequest || GLOBAL.XMLHttpRequest;
@jhen0409 it's working now as follows (RN v.0.61.2 and debugger v0.10.5): After I select "Enable Network Inspect" from RN Debugger I need to reload the bundle by selecting "Reload" from the app RN developer menu. If I don't reload then I will get the error.