You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Error Unauthorized" in the command line after enabling "Remote JS debugging" #23719
Can you try using Safari for debugging? A JSI for debugger for Chrome is currently being worked on, but for now Safari is your best bet for remote debugging.
For more context for anyone that would like to help look into this.
In my case, this error only came up after I setup my phone on Xcode and ran my app on my phone.
Whenever you run your app on your phone, your debug URL will be your system IP:8081 e.g http://192.168.122.112:8081/debugger-ui/ as opposed to the typical localhost i.e http://127.0.0.1:8081/debugger-ui/ that the simulator uses.
PS: This error goes away if you disable JS debugging on the simulator iPhone.
That being said, after I was done testing with my phone and went back to my simulator, my debugger IP was still my system IP, and I think that's the source of this Unauthorized error.
I hope this helps someone help us with solution. 😂
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
Anyone who might come across this, I also encountered the Error: Unauthorized from Metro Bundler. I just restarted my computer and everything worked perfectly.
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.
Activity
hramos commentedon Mar 1, 2019
Can you try using Safari for debugging? A JSI for debugger for Chrome is currently being worked on, but for now Safari is your best bet for remote debugging.
onstash commentedon Mar 2, 2019
Similar end result. Mobile app screen is stuck at "Connecting to remote debugger".
opp100 commentedon Mar 3, 2019
Have you try this.
#23349 (comment)
onstash commentedon Mar 4, 2019
Hey @opp100. I tried that comment. It is not working as expected. I am getting the same error.
onstash commentedon Mar 4, 2019
Not sure how this issue is going to be fixed. I downgraded to 0.57.2 and things are working. Would close this issue if it's OK with you guys.
kelset commentedon Mar 4, 2019
Can you tried init'ing a project with the latest rc for 0.59? And report if it's happening there too?
onstash commentedon Mar 4, 2019
Hi @kelset. Sure. Will do that.
kelset commentedon Mar 4, 2019
Ok, actually I may have an idea - are you using an Emulator or device running Android 9?
Because in that case you can simply add this line to your manifest as workaround. A proper fix is already in place for 0.59 (refer to this conv).
marlon-wiprud commentedon Mar 6, 2019
Having the same issue. Debugging works on IOS simulator, but does not work on real IOS device. React native version: 0.58.6.
Error: unauthorized.
Any ideas greatly appreciated!
Kendysond commentedon Mar 9, 2019
For more context for anyone that would like to help look into this.
In my case, this error only came up after I setup my phone on Xcode and ran my app on my phone.
Whenever you run your app on your phone, your debug URL will be your system IP:8081 e.g
http://192.168.122.112:8081/debugger-ui/as opposed to the typical localhost i.ehttp://127.0.0.1:8081/debugger-ui/that the simulator uses.PS: This error goes away if you disable JS debugging on the simulator iPhone.
That being said, after I was done testing with my phone and went back to my simulator, my debugger IP was still my system IP, and I think that's the source of this Unauthorized error.
I hope this helps someone help us with solution. 😂
sunnylqm commentedon Mar 20, 2019
I found that some chrome extensions may contain custom orgin in headers, which would trigger this error.
react-native-community/cli#253
Gerlison commentedon Mar 23, 2019
I was with the same error. For me worked change the url in chrome from
192.168.0.xxx:8081/debugger-uitolocalhost:8081/debugger-ui. This happened when i was using Live Reload to run my app in a real device. I hope this help youuser0604 commentedon Mar 26, 2019
Thank you! I had this exact problem, then I disabled the "Allow-Control-Allow-Origin" chrome extension and that solved it!
alittletf commentedon Jul 17, 2019
Anyone who might come across this, I also encountered the Error: Unauthorized from Metro Bundler. I just restarted my computer and everything worked perfectly.
DrHrishi commentedon Jul 22, 2019
Disable all chrome CORS extensions, and then try :-)
stale commentedon Oct 20, 2019
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.
stale commentedon Oct 27, 2019
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.