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

"MongoError: The 'cursor' option is required" when calling getAll() with just a callback #22

Open
draktheas opened this issue Mar 29, 2018 · 0 comments

Comments

@draktheas
Copy link

Get the following error when using getAll() method with just a callback and no list of id's:

MongoError: The 'cursor' option is required, except for aggregate with the explain argument at Function.MongoError.create (/src/grid_plus/services/pricing-service/node_modules/mongodb-core/lib/error.js:31:11) at /src/grid_plus/services/pricing-service/node_modules/mongodb-core/lib/connection/pool.js:497:72 at authenticateStragglers (/src/grid_plus/services/pricing-service/node_modules/mongodb-core/lib/connection/pool.js:443:16) at Connection.messageHandler (/src/grid_plus/services/pricing-service/node_modules/mongodb-core/lib/connection/pool.js:477:5) at Socket.<anonymous> (/src/grid_plus/services/pricing-service/node_modules/mongodb-core/lib/connection/connection.js:331:22) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at Socket.Readable.push (_stream_readable.js:208:10)

Appears that this was an issue with the Mongo driver that was fixed here: mongodb/node-mongodb-native@beccc83

Might be as simple as updating to a new version of mongo.

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

1 participant