debugger icon indicating copy to clipboard operation
debugger copied to clipboard

TCP connection error on setup

Open jaril opened this issue 8 years ago • 4 comments

Error repeatedly thrown immediately after setup using default config:

yarn run v1.9.4
$ node bin/dev-server
Listening for WS on localhost:8116, all traffic is proxied to localhost:6080
Protocol messages can be logged by enabling `logging.firefoxProxy` `in /configs/local.json`
Hot Reloading - https://github.com/devtools-html/debugger.html/blob/master/docs/local-development.md#hot-reloading
View debugger examples here:
https://github.com/devtools-html/debugger-examples
Development Server Listening at http://localhost:8000
TCP connection failed: Error: connect ECONNREFUSED 127.0.0.1:6080
WS connection closed, disconnected from TCP
TCP connection failed: Error: connect ECONNREFUSED 127.0.0.1:6080
WS connection closed, disconnected from TCP
TCP connection failed: Error: connect ECONNREFUSED 127.0.0.1:6080
WS connection closed, disconnected from TCP

Doesn't seem to affect debugger functions, though it can be misleading to beginners to the project. The error seems to stem from the default setting webSocketConnection: false in configs/development.json.

The error is thrown from devtools-launchpad/bin/firefox-proxy, which is called when webSocketConnection: false. Error disappears with webSocketConnection: true, where firefox-proxy is not being used (mentioned in https://github.com/devtools-html/debugger.html/issues/1069).

jaril avatar Dec 03 '18 05:12 jaril

Was facing this issue. How to go about resolving this issue?

reCursedd avatar Dec 04 '18 15:12 reCursedd

I think we should change it's default value to true since launchpad I think is used with just firefox where port 6080 is not open.

AnshulMalik avatar Dec 04 '18 16:12 AnshulMalik

/claim

saranti avatar Dec 26 '18 06:12 saranti

Thanks for claiming the issue! :wave:

Here are some links for getting setup, contributing, and developing. We're always happy to answer questions in slack! If you become busy, feel free to /unclaim it.

:fox_face: Debugger team!

claim avatar Dec 26 '18 06:12 claim