Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Native Dev tool lauching error #17910

Closed
varunajmera0 opened this issue Feb 8, 2018 · 19 comments
Closed

React Native Dev tool lauching error #17910

varunajmera0 opened this issue Feb 8, 2018 · 19 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@varunajmera0
Copy link

varunajmera0 commented Feb 8, 2018

I am requesting to launch dev tool but it forwards to http://10.0.2.2:8081/debugger-ui

@react-native-bot
Copy link
Collaborator

@facebook-github-bot no-template

@facebook-github-bot
Copy link
Contributor

Something went wrong executing that command, @mkonicek could you take a look?

@blazergame
Copy link

@varunajmera0 try killing the process of your browser and emulator. Run adb kill-server to remove your attached devices. Restart your emulator and rerun the remote debugger. The remote debugger should be pointing to your localhost:8081/debugger-ui

@varunajmera0
Copy link
Author

varunajmera0 commented Feb 8, 2018

I am using react native from past few months and never came across this error so why to kill the server, can you explain how it will help? How come this error came from nowhere I don't know. @blazergame

@blazergame
Copy link

I had a similar issue last night. It seems like the emulator is connecting to an old debugger session. By resetting that connection, it'll create a new connection to reconnect with. If that didn't work, it might be something else that I'm not too sure of.

@varunajmera0
Copy link
Author

I have just deployed one app with "react-native": "0.52.2". It doesn't happen with this version ( "react-native": "0.52.2"). It is happening only with "react-native": "0.53.0".

@hramos
Copy link
Contributor

hramos commented Feb 9, 2018

Hey, thanks for reporting this issue!

It looks like your description is missing some necessary information, or the list of reproduction steps is not complete. Can you please add all the details specified in the template? This is necessary for people to be able to understand and reproduce the issue being reported.

I am going to close this, but feel free to open a new issue that meets the requirements set forth in the template. Thanks!

@hramos hramos closed this as completed Feb 9, 2018
@varunajmera0
Copy link
Author

What kind of description is missing or list of reproduction steps?
Your Dev tool is not launching.

@varunajmera0
Copy link
Author

See again, every time I have to write manually this http://localhost:8081/debugger-ui/
image

@vladp
Copy link

vladp commented Apr 8, 2018

I have same issue with 0.54.
Why is react-native bridge asking Chrome to access http://10.0.2.2:8081/debugger-ui
?
this is an internal address within emulator and will not be accessible by chrome.

Not clear why this issue is closed, has it been resolved or is this a user error?

@varunajmera0
Copy link
Author

@vladp they won't give any response. Before 0.54, I didn't get that error.

@ichoubrahim
Copy link

ichoubrahim commented Apr 24, 2018

Try to access the debugger with your local address : http://127.0.0.1:8081/debugger-ui/ or http://localhost:8081/debugger-ui/ because 10.0.x.x is not accessible by chrome.

@alihalabyah
Copy link

Any updates on this?

@devmrin
Copy link

devmrin commented May 17, 2018

Solved the issue for me following:

Press Cmd + M on emulator screen
Go to Dev settings > Debug server host & port for device
Set localhost:8081
Rerun the android app: react-native run-android
Debugger is connected now!

@chenUT
Copy link

chenUT commented May 17, 2018

@devmrin 's solution works for me. Thanks.

@YogendraShelke
Copy link

Use actual device for debugging

@msoheilipro
Copy link

The solution by devmrin commented on May 17 works for me too

@Johncy1997
Copy link

@devmrin solution will work.

@aswinaryal
Copy link

aswinaryal commented Sep 3, 2018

the perfect solution for this issue is:
Inside your emulator:
Press Cmd + M ( on Mac) or Ctrl+M ( on windows)
Go to Dev Settings and under Debugging menu click

Debug server host & port for device
Set it to
localhost: 8081.
Reload the app.

@facebook facebook locked as resolved and limited conversation to collaborators Feb 9, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Feb 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests