When I try to create this error shows up:
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)
here's my model
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
}
}
};
See Question&Answers more detail:os