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'
}
B
b1nzee408d ago
Have you imported the plugin-api/register multiple times?
S
Swiizyy408d ago
no just one :/
F
Favna407d ago
are you using an external sharder
P
Photon407d ago
Kill the process running at that port Ahh sharder problem? didn't know 🤦‍♂️
F
Favna407d ago
could be
F
Favna407d 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
S
Swiizyy407d ago
I didn't remove the autoconnect and I connected it by hand 😭😂
Want results from more Discord servers?
Add your server
More Posts
Quick question regarding application descriptionsHow does one link an application command in the description of an app? Looks like a mention syntax, What typescript version to use?Since the most recent announcement in #Announcements recommends that I should not use typescript verHow to get subcommand name from interaction object?I ~~am~~ will be having multiple commands which have their own sub commands (3 sub command per parenHow do I listen for reactions on all messages in a channel?doing discord bot dev after a long time. i wanted to listen for message reactions on every message iMessageCreate Event isn't workingThis is the first listener Im creating I've read the documentation 50 times imo and checked out the How big is the difference between xyz.cache.get() and await xzy.fetch()?fetch returns the cached thing aswell if it exists, so except the Promise difference i see not reallNOT WORK SAPPHIREwhy not work bot commands?Throwing on unhandled interactionHey, I just wanted to quickly check this idea - If I assign a listener to interaction create and theReply During CooldownCan I make the bot reply with the remaining time of cooldown delay ?messageUpdate event not Triggering```ts import { Listener } from '@sapphire/framework'; import type { Message } from 'discord.js'; exp'"discord.js"' has no exported member named 'WebhookEditMessageOptions'. Did you mean 'WebhookFetchMError: '"discord.js"' has no exported member named 'WebhookEditMessageOptions'. Did you mean 'WebhooMonoreposDoes Sapphire work and play nice with monorepos?Question regarding slash commands / aliasesHi, is there a way for me to register command aliases as slash commands as well? For example: Commandisable commands by dashboard.I want to disable commands through dashboard so, is there any way to dynamically disable commands ?What is the difference between response.status and response.statusCode ?When using the API Plugin of Sapphire.Hey what is DEVELOPMENT MODE and how do I disable itI tried setting the Node_Env to something else but it did not change it in the consoleBotList Autopost of stats is not workingI am using the bot list plugin https://github.com/devtomio/sapphire-plugin-botlist I set everything Miss matching objects on permission setting.Typescript says that permissionOverwrites does not exits in GuildBasedChannel, even tho it exists, irequiredClientPermissions check always rejectingWhile `requiredUserPermissions: ['ManageRoles']` works great. The client check `requiredClientPermisUnable to get member data from users that have left / kickedHi, I am trying to get data from members who have left the discord server or have been kicked. But I