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

Error: WebSocket was closed before the connection was established #25

Closed
mitchell-merry opened this issue Oct 12, 2022 · 2 comments
Closed
Assignees

Comments

@mitchell-merry
Copy link
Owner

bot           | node:events:505
bot           |       throw er; // Unhandled 'error' event
bot           |       ^
bot           | 
bot           | Error: WebSocket was closed before the connection was established
bot           |     at WebSocket.close (/usr/app/node_modules/ws/lib/websocket.js:285:14)
bot           |     at WebSocketShard.destroy (/usr/app/node_modules/discord.js/src/client/websocket/WebSocketShard.js:728:27)
bot           |     at Timeout.<anonymous> (/usr/app/node_modules/discord.js/src/client/websocket/WebSocketShard.js:522:12)
bot           |     at listOnTimeout (node:internal/timers:559:17)
bot           |     at processTimers (node:internal/timers:502:7)
bot           | Emitted 'error' event on WebSocket instance at:
bot           |     at emitErrorAndClose (/usr/app/node_modules/ws/lib/websocket.js:993:13)
bot           |     at processTicksAndRejections (node:internal/process/task_queues:83:21)
bot           | 
bot           | Node.js v17.9.1

@mitchell-merry
Copy link
Owner Author

discordjs/discord.js#7964 seems to be the solution for this

@mitchell-merry mitchell-merry self-assigned this Oct 18, 2022
@mitchell-merry
Copy link
Owner Author

updated to v14, will reopen this if the error re-occurs

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

1 participant