Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'seq' of undefined #6

Open
ghost opened this issue Mar 17, 2014 · 0 comments
Open

TypeError: Cannot read property 'seq' of undefined #6

ghost opened this issue Mar 17, 2014 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 17, 2014

I meet a error:

/root/nodePage/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/base.js:242
throw message;
^
TypeError: Cannot read property 'seq' of undefined
at /root/nodePage/node_modules/mongoose-id-autoinc/lib/mongoose-id-autoinc.js:70:39
at /root/nodePage/node_modules/mongoose/node_modules/mongodb/lib/mongodb/collection/core.js:703:14
at /root/nodePage/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1098:5
at /root/nodePage/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1806:9
at Server.Base._callHandler (/root/nodePage/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/base.js:442:41)
at /root/nodePage/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:485:18
at MongoReply.parseBody (/root/nodePage/node_modules/mongoose/node_modules/mongodb/lib/mongodb/responses/mongo_reply.js:68:5)
at null. (/root/nodePage/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:443:20)
at EventEmitter.emit (events.js:95:17)
at null. (/root/nodePage/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:191:13)

DEBUG: Program node app exited with code 8

I checked there is the collection "counters" and a document { "_id" : ObjectId("53271980a811715413c98408"), "model" : "customerunikey", "field" : "id", "seq" : 10002, "__v" : 0 }.

how to fix the error, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants