question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Network inspector failing all requests (fetch)

See original GitHub issue

React Native Debugger app version: 0.10.3 React Native version: 0.61.4 Platform: iOS Is real device of platform: Simulator 11.0.1 Operating System: macOS

When I’ve got network inspector disabled everything works fine (and my app does API requests successfully). Today I needed to examine a problematic API request and enabled network inspector. Immediately all my (including previously working ones) requests started to fail with SyntaxError: Unexpected token o in JSON at position 1. This looks like something deeper affecting multiple components of the debugger as I’ve opened a very similar issue https://github.com/jhen0409/react-native-debugger/issues/426 which has the same error but with UI inspector when trying to view a component with percentage margins on UI inspector, irrelevant from the Network Inspector. I’ve also seen https://github.com/jhen0409/react-native-debugger/issues/190 but on that issue users are getting 401 errors whereas I’m getting a JSON parser error.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:8
  • Comments:6

github_iconTop GitHub Comments

3reactions
peter-dragoncommented, Nov 11, 2019

@nvthai v0.10.4 hasn’t fixed the issue, the last working version for me is v0.10.2

React Native Debugger app version: 0.10.3 and 0.10.4 React Native version: 0.60.5 Platform: iOS Is a real device of the platform: Simulator 12.4 Operating System: macOS 10.14.6

1reaction
canpoyrazoglucommented, Nov 14, 2019

@jhen0409 I confirm that this issue has been fixed for me with 0.10.4. @peter-dragon can you, if possible, try again with the latest RN version?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chrome inspector does not show network requests path and etc
All I need to do is click on filter icon (it's active when it's color is blue). And then select the type of...
Read more >
Detect Network Failures When Using Fetch | by Aaron Bruce
Fetch throws “Network request failed”. This is annoying because this error is thrown by fetch whenever something fails, but there's no ...
Read more >
Inspect network traffic with the Network Inspector
Find out how to examine how and when your app transfers data, and optimize the underlying code appropriately with the Network Inspector.
Read more >
Inspect network activity - Chrome Developers
This is a hands-on tutorial of some of the most commonly-used DevTools features related to inspecting a page's network activity.
Read more >
Inspect network activity - Microsoft Edge Development
Inspect the properties of individual HTTP requests and responses, such as the HTTP headers, content, or size. This is a step-by-step ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found