MongoError: E11000 duplicate key error index: b2urh52bh95t.users.$email_1 dup key: { : null } at Db.wrap (/home/ubuntu/nodeclub/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1904:11) at [object Object].<anonymous> (/home/ubuntu/nodeclub/node_modules/mongoose/node_modules/mongodb/lib/mongodb/collection.js:452:26) at [object Object].g (events.js:180:16) at [object Object].EventEmitter.emit (events.js:106:17) at Db._callHandler (/home/ubuntu/nodeclub/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1439:25) at /home/ubuntu/nodeclub/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:425:30 at [object Object].MongoReply.parseBody (/home/ubuntu/nodeclub/node_modules/mongoose/node_modules/mongodb/lib/mongodb/responses/mongo_reply.js:127:5) at [object Object].<anonymous> (/home/ubuntu/nodeclub/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:384:22) at [object Object].EventEmitter.emit (events.js:95:17) at [object Object].<anonymous> (/home/ubuntu/nodeclub/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:136:13) at [object Object].EventEmitter.emit (events.js:98:17) at Socket.<anonymous> (/home/ubuntu/nodeclub/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection.js:297:22) at Socket.EventEmitter.emit (events.js:95:17) at Socket.<anonymous> (_stream_readable.js:745:14) at Socket.EventEmitter.emit (events.js:92:17) at emitReadable_ (_stream_readable.js:407:10) at emitReadable (_stream_readable.js:403:5) at readableAddChunk (_stream_readable.js:165:9) at Socket.Readable.push (_stream_readable.js:127:10) at TCP.onread (net.js:528:21) at TCP.onread (/home/ubuntu/nodeclub/node_modules/newrelic/node_modules/continuation-local-storage/node_modules/async-listener/glue.js:177:31)
6 回复
@JacksonTian 这是 github 没有 email 的错。我特意开了个新号来测这个,提示这个错误:
您 GitHub 账号的 Email 与之前在 CNodejs 注册的 Email 重复了,也可能是您的 GitHub 没有提供公开的 Profile Email 导致注册失败。请访问:https://github.com/settings/profile。
这条抛错已经很久没见过了。