-
Notifications
You must be signed in to change notification settings - Fork 138
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
Error in React Native when connected to Chrome debugger #4
Comments
Might be related facebook/react-native#4470 |
That's strange. I've just checked my example with having Chrome debugger on, and it works. We even have now a docker for Chrome debugger page. Could you please try my example? If the problem persits, please try to use localhost as indicated here to see if the problem is related to the remote server. |
@zalmoxisus Will do. BTW I tried on actual device (Android) rather than emulator if it makes a difference. |
Oh, then that could be the problem. It wouldn't work with |
@satya164, just checked on HTC One with Android 5.0.1, it has no problems with having Chrome debugger on. Maybe yo use an older version of React Native? Or maybe there's a local network issue? If so, I think we can use a workaround with long polling instead of sockets. |
Can't be a network issue as I'm connected through USB. I'm on Android 6.0. Can you provide any tips on how to debug the issue? |
No, it doesn't communicate via USB if you didn't configure you phone to use the laptop internet. Maybe your phone's wifi is just turned off? It turns out that it cannot connect to UPD: Sorry, I forgot that it's the case only when turning the debugger on. |
Which port does it communicate through? May be I can run |
On port You can use It will not display anything in the monitor app by default, but at least can test if the issue is with socket communications. |
@zalmoxisus Will try and report back. Thanks. |
Hey @satya164, Just released If that will not help, we'll try long polling. |
Hey, thanks. I'll try soon. |
Any progress on this? It's not easy to get this working on a device connected via USB. I usually run |
@ssomnoremac, thanks for the report. I'm not sure the issue is related to this one. So, according to this, if you disable React Native debugger, it should work. In your case it is more probably a network problem, so the connection with Are the wifi connected on that device? Have you also tried to run |
I was using devtools-on-debugger at first without the devtools in middleware --didn't work. I'll try remotedev-server. Thanks. |
For the benefit of google indexing, the error message here is "Event response for 'login' timed out" (it took me too long to find this). My situation is that I'm running remote-redux-devtools with a local server, but many times I don't have the redux debugger running because I'm working on something else. So I'd like to make this error ignorable (I know that the debugger won't be able to connect, and I'm ok with that). |
The issue with sockets on React Native when connected to Chrome debugger should be fixed in |
for me it worked, after I removed port and host from my composeWithDevTools |
When the app is connected to chrome debugger, it shows the following error message,
I don't see the
@@INIT
action, so I assume it's unable to connect.It works fine if not connected to the debugger. For now I detect if the app is running in a web worker instance and disable the dev tools.
The text was updated successfully, but these errors were encountered: