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.

"Error Unauthorized" in the command line after enabling "Remote JS debugging"

See original GitHub issue

🐛 Bug Report

I am getting “Error Unauthorized” in the command line after enabling “Remote JS debugging”. This is from a freshly installed react-native v0.58.6.

screenshot 2019-03-01 at 23 21 58

To Reproduce

react-native start react-native run android Enable Hot Reloading Enable Live Reload Enable JS Debugging

Expected Behavior

Chrome tab should open Chrome debugger App should not display a white screen & command line should not show “Error unauthorized”

Code Example

Default app of a freshly installed react-native v0.58.6. Not sure what I can reproduce here.

Environment

React Native Environment Info: System: OS: macOS 10.14.3 CPU: (4) x64 Intel® Core™ i5-7360U CPU @ 2.30GHz Memory: 35.32 MB / 8.00 GB Shell: 5.3 - /bin/zsh Binaries: Node: 8.12.0 - /usr/local/bin/node Yarn: 1.12.3 - ~/.yarn/bin/yarn npm: 6.5.0 - /usr/local/bin/npm Watchman: 4.7.0 - /usr/local/bin/watchman SDKs: Android SDK: API Levels: 23, 25, 26, 27, 28 Build Tools: 23.0.1, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 26.0.3, 27.0.3, 28.0.3 IDEs: Android Studio: 3.1 AI-173.4720617 Xcode: /undefined - /usr/bin/xcodebuild npmPackages: react: 16.6.3 => 16.6.3 react-native: 0.58.5 => 0.58.5 npmGlobalPackages: react-native-cli: 2.0.1 react-native-git-upgrade: 0.2.7

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:17 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
DrHrishicommented, Jul 22, 2019

Disable all chrome CORS extensions, and then try 😃

2reactions
Gerlisoncommented, Mar 23, 2019

I was with the same error. For me worked change the url in chrome from 192.168.0.xxx:8081/debugger-ui to localhost:8081/debugger-ui. This happened when i was using Live Reload to run my app in a real device. I hope this help you

Read more comments on GitHub >

github_iconTop Results From Across the Web

401 Unauthorized Error: What It Is and How to Fix It
The 401 Unauthorized Error is an HTTP response status code indicating that the client could not authenticate a request.
Read more >
React Native Debug JS Remotely Error window ...
It may open the browser window again with debugging window. ... Stop Remote JS Debugging; CMD + CTRL + Z Again; enable Remote...
Read more >
How to Fix a 401 Unauthorized Error? - GeeksforGeeks
The 401 Unauthorized Error is an HTTP status code error that represented ... ipconfig/flushdns in the command prompt and clicking on ENTER.
Read more >
How to Quickly Fix the 401 Unauthorized Error (5 Methods)
1. Look for Errors in the URL. We'll start off with the easiest potential fix: making sure you used the correct URL. This...
Read more >
Debugging - Getting Started - Node.js
Since the debugger has full access to the Node.js execution environment, a malicious actor able to connect to this port may be able...
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