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

Hi #3

Closed
HoangGun10102003 opened this issue Oct 4, 2022 · 1 comment
Closed

Hi #3

HoangGun10102003 opened this issue Oct 4, 2022 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@HoangGun10102003
Copy link

MongoServerError: E11000 duplicate key error collection: myFirstDatabase.guilds index: guildId_1 dup key: { guildId: null }
at C:\Users\kirit\Downloads\Giveaway-main (1)\Giveaway-main\node_modules\mongodb\lib\operations\insert.js:53:33
at C:\Users\kirit\Downloads\Giveaway-main (1)\Giveaway-main\node_modules\mongodb\lib\cmap\connection_pool.js:299:25
at C:\Users\kirit\Downloads\Giveaway-main (1)\Giveaway-main\node_modules\mongodb\lib\sdam\server.js:212:17
at handleOperationResult (C:\Users\kirit\Downloads\Giveaway-main (1)\Giveaway-main\node_modules\mongodb\lib\sdam\server.js:284:20)
at Connection.onMessage (C:\Users\kirit\Downloads\Giveaway-main (1)\Giveaway-main\node_modules\mongodb\lib\cmap\connection.js:219:9)
at MessageStream. (C:\Users\kirit\Downloads\Giveaway-main (1)\Giveaway-main\node_modules\mongodb\lib\cmap\connection.js:60:60)
at MessageStream.emit (node:events:513:28)
at processIncomingData (C:\Users\kirit\Downloads\Giveaway-main (1)\Giveaway-main\node_modules\mongodb\lib\cmap\message_stream.js:132:20)
at MessageStream._write (C:\Users\kirit\Downloads\Giveaway-main (1)\Giveaway-main\node_modules\mongodb\lib\cmap\message_stream.js:33:9)
at writeOrBuffer (node:internal/streams/writable:392:12) {
index: 0,
code: 11000,
keyPattern: { guildId: 1 },
keyValue: { guildId: null },
[Symbol(errorLabels)]: Set(0) {}
}

@chethanyadav456 chethanyadav456 added the help wanted Extra attention is needed label Oct 14, 2022
@chethanyadav456
Copy link
Owner

MongoServerError: E11000 duplicate key error collection: myFirstDatabase.guilds index: guildId_1 dup key: { guildId: null }

check this answers out. It might help u.
https://stackoverflow.com/questions/24430220/e11000-duplicate-key-error-index-in-mongodb-mongoose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants