react-native-debugger icon indicating copy to clipboard operation
react-native-debugger copied to clipboard

Network Inspect not working with RN 0.60.0

Open jmschlmrs opened this issue 7 years ago • 35 comments

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.

Screen Shot 2019-07-10 at 12 42 36 PM Screen Shot 2019-07-10 at 12 42 28 PM

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

jmschlmrs avatar Jul 10 '19 16:07 jmschlmrs

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

karltaylor avatar Jul 25 '19 16:07 karltaylor

Any updates? This is one of the main reasons I use React Native Debugger...

OzzieOrca avatar Aug 16 '19 21:08 OzzieOrca

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."

showoffer avatar Aug 20 '19 06:08 showoffer

Fixed for me after upgrading react-native-debugger to v0.9.12. Thanks!

jmschlmrs avatar Aug 23 '19 14:08 jmschlmrs

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.

Kikketer avatar Aug 27 '19 15:08 Kikketer

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!

showoffer avatar Aug 28 '19 10:08 showoffer

Running RN v0.60.5 and debugger v0.9.12 and this issue is still happening.

garydevenay avatar Aug 30 '19 11:08 garydevenay

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

Sleepful avatar Sep 03 '19 21:09 Sleepful

Same issue RN v0.60.5 and debugger v0.9.12

maamounapprise avatar Sep 04 '19 13:09 maamounapprise

Same issue with RN v.0.61.2 and debugger v0.10.2

ks093 avatar Oct 23 '19 12:10 ks093

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

santtul avatar Oct 24 '19 07:10 santtul

https://github.com/jhen0409/react-native-debugger/issues/382#issuecomment-544226529 seems to work for now.

OzzieOrca avatar Oct 25 '19 01:10 OzzieOrca

@santtul thanks! it is helped me!

mykhailo-melnyk avatar Oct 29 '19 10:10 mykhailo-melnyk

https://github.com/jhen0409/react-native-debugger/blob/master/docs/network-inspect-of-chrome-devtools.md#how-it-works

skurgansky-sugarcrm avatar Oct 29 '19 10:10 skurgansky-sugarcrm

Getting this error now TypeError: Cannot read property 'prototype' of null

roots-ai avatar Nov 10 '19 21:11 roots-ai

Thanks @santtul, This worked for me.

kalyanijamunkar10 avatar Nov 13 '19 05:11 kalyanijamunkar10

@jhen0409 should we reopen this? For me it is still not working on 0.10.5

ghost avatar Nov 28 '19 02:11 ghost

if (window.__REMOTEDEV__) { global.Blob = null; }

dtmp avatar Nov 28 '19 10:11 dtmp

please add this line in index.js file GLOBAL.Blob = null and remove this line GLOBAL.XMLHttpRequest = GLOBAL.originalXMLHttpRequest || GLOBAL.XMLHttpRequest;

kalyanijamunkar10 avatar Nov 28 '19 10:11 kalyanijamunkar10

@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.

santtul avatar Nov 28 '19 12:11 santtul