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

The 'cursor' option is required, except for aggregate with the explain argument #947

Open
cchigoriwa opened this issue Jan 4, 2018 · 0 comments

Comments

@cchigoriwa
Copy link

OpenHIM throws Transaction Load Error: -1 null

MongoDB version 3.6.0

See the following log for more details:

2018-01-04T09:05:34.772Z - debug: [worker1] Called getMetrics(false, hour, undefined)
2018-01-04T09:05:34.774Z - debug: [worker1] Metrics query object: {"endDate":"2018-01-04T11:05:34+02:00","startDate":"2018-01-03T11:05:34+02:00"}

MongoError: The 'cursor' option is required, except for aggregate with the explain argument
at Function.MongoError.create (/usr/lib/node_modules/openhim-core/node_modules/mongoose/node_modules/mongodb-core/lib/error.js:31:11)
at /usr/lib/node_modules/openhim-core/node_modules/mongoose/node_modules/mongodb-core/lib/connection/pool.js:462:72
at authenticateStragglers (/usr/lib/node_modules/openhim-core/node_modules/mongoose/node_modules/mongodb-core/lib/connection/pool.js:410:16)
at Connection.messageHandler (/usr/lib/node_modules/openhim-core/node_modules/mongoose/node_modules/mongodb-core/lib/connection/pool.js:444:5)
at Socket. (/usr/lib/node_modules/openhim-core/node_modules/mongoose/node_modules/mongodb-core/lib/connection/connection.js:306:22)
at Socket.emit (events.js:159:13)
at addChunk (_stream_readable.js:265:12)
at readableAddChunk (_stream_readable.js:252:11)
at Socket.Readable.push (_stream_readable.js:209:10)
at TCP.onread (net.js:608:20)

2018-01-04T09:05:34.819Z - debug: [worker1] Called getMetrics(true, undefined, undefined)
2018-01-04T09:05:34.821Z - debug: [worker1] Metrics query object: {"endDate":"2018-01-04T11:05:34+02:00","startDate":"2018-01-03T11:05:34+02:00"}

MongoError: The 'cursor' option is required, except for aggregate with the explain argument
at Function.MongoError.create (/usr/lib/node_modules/openhim-core/node_modules/mongoose/node_modules/mongodb-core/lib/error.js:31:11)
at /usr/lib/node_modules/openhim-core/node_modules/mongoose/node_modules/mongodb-core/lib/connection/pool.js:462:72
at authenticateStragglers (/usr/lib/node_modules/openhim-core/node_modules/mongoose/node_modules/mongodb-core/lib/connection/pool.js:410:16)
at Connection.messageHandler (/usr/lib/node_modules/openhim-core/node_modules/mongoose/node_modules/mongodb-core/lib/connection/pool.js:444:5)
at Socket. (/usr/lib/node_modules/openhim-core/node_modules/mongoose/node_modules/mongodb-core/lib/connection/connection.js:306:22)
at Socket.emit (events.js:159:13)
at addChunk (_stream_readable.js:265:12)
at readableAddChunk (_stream_readable.js:252:11)
at Socket.Readable.push (_stream_readable.js:209:10)
at TCP.onread (net.js:608:20)

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