Error server

How can I solve this error ?
Error [ERR_SERVER_ALREADY_LISTEN]: Listen method has been called more than once without closing.
at __node_internal_captureLargerStackTrace (node:internal/errors:477:5)
at new NodeError (node:internal/errors:387:5)
at Server.listen (node:net:1523:11)
at Server.connect (/home/swiizyy/Project/BirthdayyBotSapphire/node_modules/@sapphire/plugin-api/src/lib/structures/http/Server.ts:88:10)
at BirthdayyClient.[SapphireFrameworkPluginsPreLogin] (/home/swiizyy/Project/BirthdayyBotSapphire/node_modules/@sapphire/plugin-api/src/register.ts:35:21)
at BirthdayyClient.login (/home/swiizyy/Project/BirthdayyBotSapphire/node_modules/@sapphire/framework/dist/lib/SapphireClient.js:72:25)
at BirthdayyClient.login (/home/swiizyy/Project/BirthdayyBotSapphire/src/lib/BirthdayyClient.ts:24:17)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
code: 'ERR_SERVER_ALREADY_LISTEN'
}
Error [ERR_SERVER_ALREADY_LISTEN]: Listen method has been called more than once without closing.
at __node_internal_captureLargerStackTrace (node:internal/errors:477:5)
at new NodeError (node:internal/errors:387:5)
at Server.listen (node:net:1523:11)
at Server.connect (/home/swiizyy/Project/BirthdayyBotSapphire/node_modules/@sapphire/plugin-api/src/lib/structures/http/Server.ts:88:10)
at BirthdayyClient.[SapphireFrameworkPluginsPreLogin] (/home/swiizyy/Project/BirthdayyBotSapphire/node_modules/@sapphire/plugin-api/src/register.ts:35:21)
at BirthdayyClient.login (/home/swiizyy/Project/BirthdayyBotSapphire/node_modules/@sapphire/framework/dist/lib/SapphireClient.js:72:25)
at BirthdayyClient.login (/home/swiizyy/Project/BirthdayyBotSapphire/src/lib/BirthdayyClient.ts:24:17)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
code: 'ERR_SERVER_ALREADY_LISTEN'
}
7 Replies
b1nzee
b1nzee2y ago
Have you imported the plugin-api/register multiple times?
Swiizyy
SwiizyyOP2y ago
no just one :/
Favna
Favna2y ago
are you using an external sharder
Photon
Photon2y ago
Kill the process running at that port Ahh sharder problem? didn't know 🤦‍♂️
Favna
Favna2y ago
could be
Favna
Favna2y ago
Sapphire Framework
Starting on a single cluster or shard | Sapphire
Once your bot grows to a lot of servers, you will want to implement sharding, process clustering, or another form of
Swiizyy
SwiizyyOP2y ago
I didn't remove the autoconnect and I connected it by hand 😭😂
Want results from more Discord servers?
Add your server