提问人:Akaaha Victor Chukwunweike 提问时间:11/15/2023 最后编辑:Onur DoğanAkaaha Victor Chukwunweike 更新时间:11/15/2023 访问量:46
我遇到MongoDB投射错误,有人知道这意味着什么吗?
I am having MongoDB Cast Error anyone know what this means?
问:
我遇到了这个未知错误,但在我的界面和架构中,我没有定义任何具有 ObjectId 属性的字段 这可能是有史以来第一个出现此类错误,所以我真的希望这个问题能得到解决
GET /auth/discord/redirect?code=MsYzdlnjVC6upRhp37LmK5HbFP9IPW 302 7085.898 ms - 64
/Discord Authentication/node_modules/mongoose/lib/schema/objectId.js:250
throw new CastError('ObjectId', value, this.path, error, this);
^
CastError: Cast to ObjectId failed for value "{
id: {
discordId: '713145789463134269',
globalName: 'URIZEN',
_id: new ObjectId("65536ab9bec76a177731bb99"),
__v: 0
}
}" (type Object) at path "_id" for model "User"
答: 暂无答案
评论
new ObjectId(<not a valid ObjectId string>)"
_id
ObjectId
_id
Objectid
ObjectId