PartMan7 / PartBotter

Successor to PartBot. Old repository: https://github.com/PartMan7/PartBot
MIT License
1 stars 0 forks source link

MongoDB error when an already-noticed rename happens #5

Open PartMan7 opened 6 months ago

PartMan7 commented 6 months ago
/home/partman/Documents/Code/PartBotter/node_modules/mongodb/src/cmap/connection.ts:413
        callback(new MongoServerError(document));
                 ^
MongoServerError: E11000 duplicate key error collection: partbotter.alts index: id_1 dup key: { : "partman-fakepart" }
    at Connection.onMessage (/home/partman/Documents/Code/PartBotter/node_modules/mongodb/src/cmap/connection.ts:413:18)
    at MessageStream.<anonymous> (/home/partman/Documents/Code/PartBotter/node_modules/mongodb/src/cmap/connection.ts:243:56)
    at MessageStream.emit (node:events:513:28)
    at MessageStream.emit (node:domain:489:12)
    at processIncomingData (/home/partman/Documents/Code/PartBotter/node_modules/mongodb/src/cmap/message_stream.ts:193:12)
    at MessageStream._write (/home/partman/Documents/Code/PartBotter/node_modules/mongodb/src/cmap/message_stream.ts:74:5)
    at writeOrBuffer (node:internal/streams/writable:392:12)
    at _write (node:internal/streams/writable:333:10)
    at MessageStream.Writable.write (node:internal/streams/writable:337:10)
    at Socket.ondata (node:internal/streams/readable:766:22) {
  ok: 0,
  code: 11000,
  codeName: 'DuplicateKey',
  [Symbol(errorLabels)]: Set(0) {}
}