MongoError: E11000 duplicate key error collection: vpdb-production.users index: username_1 dup key: { : "eispic" }
freezy opened this issue · 1 comments
freezy commented
View details in Rollbar: https://rollbar.com/freezy/server/items/50/
MongoError: E11000 duplicate key error collection: vpdb-production.users index: username_1 dup key: { : "eispic" }
File "/var/www/server/production/v3.2.2/node_modules/mongoose/node_modules/mongodb-core/lib/error.js", line 43, in Function.create
return new MongoError(options);
File "/var/www/server/production/v3.2.2/node_modules/mongoose/node_modules/mongodb/lib/utils.js", line 149, in toError
var e = MongoError.create({ message: msg, driver: true });
File "/var/www/server/production/v3.2.2/node_modules/mongoose/node_modules/mongodb/lib/operations/collection_ops.js", line 859, in coll.s.topology.insert
return handleCallback(callback, toError(result.result.writeErrors[0]));
File "/var/www/server/production/v3.2.2/node_modules/elastic-apm-node/lib/instrumentation/modules/mongodb-core.js", line 93, in wrappedCallback
return cb.apply(this, arguments)
File "/var/www/server/production/v3.2.2/node_modules/mongoose/node_modules/mongodb-core/lib/connection/pool.js", line 397, in <unknown>
return cb(err, result);
File "/var/www/server/production/v3.2.2/node_modules/async-listener/glue.js", line 188, in <unknown>
var returned = original.apply(this, arguments);
File "internal/process/next_tick.js", line 132, in _combinedTickCallback
File "internal/process/next_tick.js", line 181, in process._tickCallback
freezy commented
Log:
2019-06-17T11:28:54.515Z ^[[33mwarn^[[39m: Validation failed. [{"message":"The username \"***\" is already taken.","name":"ValidatorError","properties":{"message":"The username \"***\" is already taken.","type":"unique","path":"username","value":"***"},"kind":"unique","path":"username","value":"***"},{"message":"The email \"***\" is already taken.","name":"ValidatorError","properties":{"message":"The email \"***\" is already taken.","type":"unique","path":"email","value":"***"},"kind":"unique","path":"email","value":"***"}]
2019-06-17T11:28:54.515Z ^[[34mdebug^[[39m: Validation failed. [{"message":"The username \"***\" is already taken.","name":"ValidatorError","properties":{"message":"The username \"***\" is already taken.","type":"unique","path":"username","value":"***"},"kind":"unique","path":"username","value":"***"},{"message":"The email \"***\" is already taken.","name":"ValidatorError","properties":{"message":"The email \"***\" is already taken.","type":"unique","path":"email","value":"***"},"kind":"unique","path":"email","value":"***"}]
POST /api/v1/users
connection: upgrade
host: api.vpdb.io
x-forwarded-for: 88.130.60.37
content-length: 79
user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:67.0) Gecko/20100101 Firefox/67.0
accept: application/json, text/plain, */*
accept-language: de,en-US;q=0.7,en;q=0.3
accept-encoding: gzip, deflate, br
referer: https://vpdb.io/games/mm/releases/e2rydboew
content-type: application/json;charset=utf-8
origin: https://vpdb.io
dnt: 1
{"username":"***","password":"***","email":"lukeskywalker2310@gmx.de"}
{
"error": "Validation failed.",
"errors": [
{
"field": "username",
"message": "The username \"***\" is already taken.",
"value": "eispic",
"code": "unique"
},
{
"field": "email",
"message": "The email \"***\" is already taken.",
"value": "***",
"code": "unique"
}
]
}
2019-06-17T11:28:54.516Z ^[[32minfo^[[39m: [***] 422 POST /api/v1/users 24ms - 287b
2019-06-17T11:29:04.632Z ^[[32minfo^[[39m: [***] 200 GET /api/v1/tags 7ms - 383b
2019-06-17T11:29:04.651Z ^[[32minfo^[[39m: [***7] 200 GET /api/v1/builds 17ms - 2.44kb