PerformanC / NodeLink

Performant LavaLink alternative written with Node.Js
BSD 2-Clause "Simplified" License
38 stars 23 forks source link

[BUG]: NodeLink crashing on fastlink close #5

Closed TehPigYT closed 11 months ago

TehPigYT commented 11 months ago

Once fastlink closes the connection, the server crashes with this error


[websocket]: Listening on port xxxxx.
[innertube]: Fetching innertube data...
[websocket]: FastLink client connected to NodeLink.
nodelink 2 <Buffer 81 3c> {"op":"ready","resume":false,"sessionId":"xxxxx"}
[innertube]: Fetched innertube data, fetching player.js...
[innertube]: Fetched player.js, parsing...
[innertube]: Extracted signatureTimestamp, decipher signature and ncode functions.
[websocket]: FastLink client connected to NodeLink.
nodelink 2 <Buffer 81 3c> {"op":"ready","resume":false,"sessionId":"xxxxxxxxxxx"}
node:events:495
      throw er; // Unhandled 'error' event
      ^
Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:217:20)
Emitted 'error' event on WebsocketConnection instance at:
    at Socket.<anonymous> (file:///home/container/src/ws.js:31:12)
    at Socket.emit (node:events:517:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -104,
  code: 'ECONNRESET',
  syscall: 'read'
}
Node.js v18.18.0
ThePedroo commented 11 months ago

Closing because this may have been fixed with PWSL fixes, open if you still find it.