Skip to content
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

Unexpected error ws library #4

Open
Raeigis opened this issue Oct 1, 2020 · 4 comments
Open

Unexpected error ws library #4

Raeigis opened this issue Oct 1, 2020 · 4 comments

Comments

@Raeigis
Copy link

Raeigis commented Oct 1, 2020

Hi !

I got some problem launching your program recently. Every time now, I got this message error :

C:\Users\raeig\Desktop\roon-discord-rp-master>node roon-discord-rp.js
events.js:292
throw er; // Unhandled 'error' event
^

Error: Unexpected server response: 400
at ClientRequest. (C:\Users\raeig\Desktop\roon-discord-rp-master\node_modules\ws\lib\websocket.js:542:5)
at ClientRequest.emit (events.js:315:20)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:596:27)
at HTTPParser.parserOnHeadersComplete (_http_common.js:119:17)
at Socket.socketOnData (_http_client.js:469:22)
at Socket.emit (events.js:315:20)
at addChunk (_stream_readable.js:295:12)
at readableAddChunk (_stream_readable.js:271:9)
at Socket.Readable.push (_stream_readable.js:212:10)
at TCP.onStreamRead (internal/stream_base_commons.js:186:23)
Emitted 'error' event on WebSocket instance at:
at abortHandshake (C:\Users\raeig\Desktop\roon-discord-rp-master\node_modules\ws\lib\websocket.js:649:15)
at ClientRequest. (C:\Users\raeig\Desktop\roon-discord-rp-master\node_modules\ws\lib\websocket.js:542:5)
[... lines matching original stack trace ...]
at Socket.Readable.push (_stream_readable.js:212:10)

I tried to reinstall it multiple times on different drive, but nothing changed. I'm a noob with node, js and everything around, so hard to tell if I did something wrong, except doing and npm install and node roon-xx.js.
Can be noted that it worked many times before.
Is there any way to fix it ?

Thank you btw for providing this program :)

@ghost
Copy link

ghost commented Apr 4, 2021

@Raeigis have you managed to find a solution for this?

@Raeigis
Copy link
Author

Raeigis commented Apr 4, 2021

@Raeigis have you managed to find a solution for this?

Sadly not, still have the same problem, I re-install roon, tried change location, same with this mod, but nothing work. It worked on very very few occasion randomly so it didn't help to find what is the problem exactly.

@PabloBonales
Copy link

@Raeigis How do you install it?

@ZenoBell
Copy link

i have the same error thrown, not sure how to troubleshoot it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants