-
Notifications
You must be signed in to change notification settings - Fork 52
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
ConnectTimeoutError
#96
Comments
I think I fixed the issue by downgrading Node.js to version |
@iced-queen what are your spawn options? |
const manager = new ClusterManager(`bot.js`, {
totalShards: `auto`,
shardsPerClusters: 3,
respawn: true,
token: process.env.NODE_ENV == `production` ? login.production_token : login.development_token,
mode: `process`,
restarts: {
max: 5,
interval: 1000 * 60 * 60 // 1 hour
}
});
manager.extend(
new HeartbeatManager({
interval: 5000,
maxMissedHeartbeats: 1
}),
new ReClusterManager()
); |
The same problem happens to me. const manager = new ClusterManager(
`${__dirname}/start.${process.argv[1].endsWith('.js') ? 'js' : 'ts'}`,
{
token: process.env.BOT_TOKEN,
shardsPerClusters: 4,
totalShards: 'auto',
mode: 'process',
respawn: true,
restarts: {
max: 6,
interval: 1000 * 60 * 60,
},
...(process.argv[1].endsWith('.ts') && {
execArgv: ['-r', 'ts-node/register'],
}),
},
);
await manager.spawn({ timeout: -1 }); |
should actually not happen, if its on -1. Does the issue appear on the djs sharding manager? My first guess would be that you are starting the ts file. |
Describe the bug
I hope the screenshot explains enough, because I am not entirely sure why I am getting this error.
I started getting this error approximately 3 weeks ago, before that I have never gotten it.
(To Reproduce)
Expected behavior
No error 😅
Screenshots & Error Stack
Discord.js Version
Additional context
So I don't know, but could it be caused by slow internet. In that case is there a way to increase the timeout and if so would that be a proper solution?
The text was updated successfully, but these errors were encountered: