gpt4 book ai didi

javascript - MongoError : topology was destroyed sailsjs

转载 作者:IT老高 更新时间:2023-10-28 13:21:17 28 4
gpt4 key购买 nike

当我尝试创建此错误时:

Error (E_UNKNOWN) :: Encountered an unexpected error MongoError: topology was destroyed at Server.insert (/Users/oscargallon/Documents/developer/sails/reyesmagoswebpae/node_modules/sails-mongo/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:797:49)

这是我的模型

module.exports = {

attributes: {
name: {
type: 'string',
required: true
},
email: {
type: 'String',
required: true
},
description: {
type: 'string',
required: true
},
phonenumber: {
type: 'string',
required: true
},
mobile: {
type: 'string',
required: true
}
}
};

最佳答案

我今天也遇到了同样的问题 - 我将sails-mongo版本从 "sails-mongo": "^0.10.7"更改为 "sails-mongo": "^0.10.6"in package.json insails并运行 $ sudo npm install 然后sails lift 它工作正常我认为npm中有一些错误

关于javascript - MongoError : topology was destroyed sailsjs,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29959602/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com