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

shard reconnection #10806

Closed
ngol911 opened this issue Mar 18, 2025 · 2 comments
Closed

shard reconnection #10806

ngol911 opened this issue Mar 18, 2025 · 2 comments

Comments

@ngol911
Copy link

ngol911 commented Mar 18, 2025

Which package is this bug report for?

discord.js

Issue description

my bot have shard reconnection alot 1 night reconnection 6-7 time

Image

Image

Code sample

Versions

  • discord.js version : 14.18.0
  • node.js version : 18.20.7

Issue priority

Medium (should be fixed soon)

Which partials do you have configured?

Message, Not applicable

Which gateway intents are you subscribing to?

Not applicable

I have tested this issue on a development release

No response

@vladfrangu
Copy link
Member

Without seeing some code or what you are doing we unfortunately cannot help debug this further 😢

@Qjuh
Copy link
Contributor

Qjuh commented Mar 18, 2025

You tried to return an instance of Timeout from an broadcastEval call. Those are not JSONifiable so they can‘t be sent over the IPC channel to the ShardingManager.

Only return plain JSON from broadcastEval calls to avoid this.

@ngol911 ngol911 closed this as completed Apr 2, 2025
@Jiralite Jiralite closed this as not planned Won't fix, can't repro, duplicate, stale Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants