jamesxsc / roon-discord-rp

Apache License 2.0
9 stars 4 forks source link

Unexpected error ws library #4

Open Raeigis opened 4 years ago

Raeigis commented 4 years ago

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 commented 3 years ago

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

Raeigis commented 3 years ago

@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 commented 3 years ago

@Raeigis How do you install it?

ZenoBell commented 3 years ago

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