Just trying to upgrade our project from 1.6 to 1.7.0.3
local mongo fixing worked as described (making it a real 3.4 mongo to allow the 3.6 upgrade). AS some developers mentioned the update command should actually at least fail if db.adminCommand( { getParameter: 1, featureCompatibilityVersion: 1 } ) is not 3.4, and better - just fix it.
Node is on version 8.11.3.
Starting the app in development mode, I got a first error with a findOne call that through the following error:
AssertionError [ERR_ASSERTION]: Cannot await without a Fiber
at awaitPromise (C:\Users\Ohad.EA\AppData\Local.meteor\packages\promise\0.11.1\npm\node_modules\meteor-promise\promise_server.js:75:12)
at Promise.await (C:\Users\Ohad.EA\AppData\Local.meteor\packages\promise\0.11.1\npm\node_modules\meteor-promise\promise_server.js:60:12)
at SynchronousCursor._nextObject (packages/mongo/mongo_driver.js:1083:12)
at SynchronousCursor.forEach (packages/mongo/mongo_driver.js:1097:22)
at SynchronousCursor.map (packages/mongo/mongo_driver.js:1107:10)
at SynchronousCursor.fetch (packages/mongo/mongo_driver.js:1131:17)
at Cursor.(anonymous function) [as fetch] (packages/mongo/mongo_driver.js:879:44)
at MongoConnection.findOne (packages/mongo/mongo_driver.js:786:56)
at Collection.findOne (packages/mongo/collection.js:356:29)
imports/api/users/server/monitorUsers.js:22:26 (that’s my code)
I solved that by wrapping the call in a Meteor.bindEnvironment(), although I shouldn’t - No reason that synchronous code on the server will stop running.
Next error is:
(node:15620) UnhandledPromiseRejectionWarning: RangeError: Maximum call stack size exceeded
at Array.some ()
at Object.matchObject (packages/ejson/ejson.js:180:31)
at toJSONValueHelper (packages/ejson/ejson.js:239:19)
at Object.EJSON.toJSONValue.item [as toJSONValue] (packages/ejson/ejson.js:292:19)
at Object.keys.forEach.key (packages/ejson/ejson.js:188:29)
at Array.forEach ()
at Object.toJSONValue (packages/ejson/ejson.js:187:24)
at toJSONValueHelper (packages/ejson/ejson.js:240:24)
at Object.EJSON.toJSONValue.item [as toJSONValue] (packages/ejson/ejson.js:292:19)
at Object.keys.forEach.key (packages/ejson/ejson.js:188:29)
at Array.forEach ()
at Object.toJSONValue (packages/ejson/ejson.js:187:24)
at toJSONValueHelper (packages/ejson/ejson.js:240:24)
at Object.EJSON.toJSONValue.item [as toJSONValue] (packages/ejson/ejson.js:292:19)
at Object.keys.forEach.key (packages/ejson/ejson.js:188:29)
at Array.forEach ()
This error is originated from a inside collection.aggregate().map(…), when the aggregated cursor promised should deliver.
At this point I stop - something is wrong with the way promises are handled, and I need help to figure out what is wrong with at least one of the core packages.
All of this code worked well in version 1.6. So the errors have to do with one or more of the new components - mongo, NPM or babel?