zaida04 / g.js-self

[archive] Library for creating selfbots on Guilded.
MIT License
54 stars 10 forks source link

Websocket connection fails with 400 error #11

Closed Sylchi closed 3 years ago

Sylchi commented 3 years ago

Error: Unexpected server response: 400 at ClientRequest. (/home/ken/workspace/guildedtest/node_modules/ws/lib/websocket.js:604:7) at ClientRequest.emit (node:events:378:20) at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:636:27) at HTTPParser.parserOnHeadersComplete (node:_http_common:129:17) at TLSSocket.socketOnData (node:_http_client:502:22) at TLSSocket.emit (node:events:378:20) at addChunk (node:internal/streams/readable:313:12) at readableAddChunk (node:internal/streams/readable:288:9) at TLSSocket.Readable.push (node:internal/streams/readable:227:10) at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)

Websocket tab suggests that guildedClientId parameter could be important. Also noted that cookies are not sent with the upgrade request.