adobe-research / theseus

A pretty darn cool JavaScript debugger for Brackets
Other
1.34k stars 69 forks source link

Websocket connection failure #14

Closed InSuperposition closed 11 years ago

InSuperposition commented 11 years ago

I am unable to use Theseus, Theseus continuously throws an error. From Developer tools: WebSocket connection to 'ws://localhost:8888/' failed: Unexpected response code: 301

When attempting live preview Theseus returns the following:

An error has occurred (have you started a server on port 3000?): {"code":"ECONNREFUSED","errno":"ECONNREFUSED","syscall":"connect"}

node-theseus v0.1.0 theseus v3.1 Brackets Sprint 27

alltom commented 11 years ago

Thanks for the report! I think I need some more information to get to the bottom of it, though.

1) Do you have any other software listening on port 8888? I haven't seen "Unexpected response code: 301" before, and it looks kind of like Theseus connected to something other than a Node.js instance.

2) The "have you started a server on port 3000?" error appears when Theseus is in Proxy mode (File > Mode: Proxy to localhost:3000) but it can't find an HTTP server running on localhost:3000 to proxy to. Is there one? Or perhaps you mean to be in Static mode (File > Mode: Serve files from disk)?

InSuperposition commented 11 years ago

As it turns out I had a java app running on 8888. Works great now, thanks for the help