react-native: 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

screenshot 2016-03-24 15 10 20

We’re using version 0.22 on the Mac with iOS

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 26
  • Comments: 46 (7 by maintainers)

Most upvoted comments

Also having this issue

same issue, react native 0.26.3

Also having same issue

try running ‘adb reverse tcp:8081 tcp:8081’ in terminal to access the development server from the device

+1 I restart my computer, and its gone.

Any solution?

Similar error is preventing me from using Chrome dev tools for debugging React Native app.

WebSocket connection to 'ws://localhost:8081/debugger-proxy?role=debugger&name=Chrome' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

node v7.2.1 react-native-cli: 1.2.0 react-native: 0.44.0

I can confirm it is greatly improved in RN30. The error still pops up occasionally but its rare enough for it not to be a hindrance anymore.

Downgrading of Node from 6.3.0 to 6.2.2 didn’t work for me; Issue still persists.

I have the same issue when using Chrome, but it won’t happen if I use https://github.com/jhen0409/react-native-debugger.