WebSocket connection to 'ws://localhost:8081/debugger-proxy?role=debugger&name=Chrome' failed: Invalid frame header
Seem to have started getting this random error when debugging with chrome, it will debug for a while and then die with the error:
WebSocket connection to 'ws://localhost:8081/debugger-proxy?role=debugger&name=Chrome' failed: Invalid frame header

We're using version 0.22 on the Mac with iOS
Also having this issue
+1 I restart my computer, and its gone.
Same. Version 0.22 on Mac with iOS.
so has this been fixed? I'm running http server in node, listening on port 3001 and after react-native recieves any error (like parse Error for example) I need to restart it and react-android app no longer connects to that node server. I end up with just that message in debugger:
"WebSocket connection to 'ws://localhost:8081/debugger-proxy?role=debugger&name=Chrome' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED"
I set up adb connection over wifi, 'adb devices' shows my phone and app starts normally - but doesnt connect over 3001
EDIT: react-native-cli: 0.2.0 react-native 0.24.1
Also having same issue
try running 'adb reverse tcp:8081 tcp:8081' in terminal to access the development server from the device
Same issue here on 0.24 version for iOS
same issue, react native 0.26.3
I have the same issue when using Chrome, but it won't happen if I use https://github.com/jhen0409/react-native-debugger.
Experiencing the same issue with react-native: 0.28.0
EDIT: found a fix - https://medium.com/@davidguandev/lets-build-a-react-native-application-4190839a4f5c#.2jswlrano
@millerm are you referring to the ATS configuration in xcode ?
If so, it doesn't solve it for me. OSX / React native 0.28
Edit: --> I found a quick workarround that works for now by opening chrome in incognito mode
Perhaps it's antivirus? https://github.com/facebook/react-native/issues/7413
Have the same issue
RN 0.28 MAC OS
A colleague of mine had the same issue on node version 6.x. He downgraded to the same version I'm running, v5.9.1, and it resolved his issue.
Yup, I can confirm that Node 6.3 was the problem for me.
I downgraded as @hendrikswan suggested, but to version 6.2 and everything has been running without problems for a few hours.
Downgrading of Node from 6.3.0 to 6.2.2 didn't work for me; Issue still persists.
Maybe downgrade further?
On Fri, 15 Jul 2016 at 08:47 Phillip Kingston [email protected] wrote:
Downgrading of Node from 6.3.0 to 6.2.2 didn't work for me; Issue still persists.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/facebook/react-native/issues/6627#issuecomment-232875006, or mute the thread https://github.com/notifications/unsubscribe-auth/AAQsNZ1PwiqFnsXzGdPXWjsgYg-pg-w9ks5qVyz-gaJpZM4H4D2Z .
I think this might be "fixed" in RN 0.30 which uses ws 1.1.1, which doesn't try to install native helper modules by default and should work more consistently across V8 versions.
Can someone confirm if RN 0.30 fixes this?
Have the same thing