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

Mongodb connection error #248

Open
Ezeril opened this issue Oct 25, 2024 · 2 comments
Open

Mongodb connection error #248

Ezeril opened this issue Oct 25, 2024 · 2 comments

Comments

@Ezeril
Copy link

Ezeril commented Oct 25, 2024

[ERROR] >> MongoDB >> Failed to connect to MongoDB! >> Error: MongoServerError: bad auth : Authentication failed.
Exiting...
Unhandled promise rejection: Error [ShardingReadyDied]: Shard 0's process exited before its Client became ready.
at Shard.onDeath (/home/container/node_modules/discord.js/src/sharding/Shard.js:185:16)
at Object.onceWrapper (node:events:632:26)
at Shard.emit (node:events:529:35)
at Shard._handleExit (/home/container/node_modules/discord.js/src/sharding/Shard.js:446:10)
at ChildProcess.emit (node:events:517:28)
at ChildProcess._handle.onexit (node:internal/child_process:292:12) {
code: 'ShardingReadyDied'
}

Still the same errors, I've changed the password of the user the bot uses to connect, deleted the npm, package-lock.json and node_modules files, installed the latest version of mongoose, so I don't understand.

@gamer167
Copy link

I am thinking it might be an issue with mongoDB

@gamer167
Copy link

Is it the username supplied by you?

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

2 participants