Meteor-Community-Packages / meteor-roles

Authorization package for Meteor, compatible with built-in accounts packages
http://meteor-community-packages.github.io/meteor-roles/
MIT License
920 stars 164 forks source link

Upgrading from 3.4.0 to 3.5.0 introduces 6x node "UnhandledPromiseRejectionWarning: TypeError: Cannot set property 'isCalledFromAsync' of undefined" warnings. #369

Open jasonxeno opened 11 months ago

jasonxeno commented 11 months ago

Using METEOR@2.12, 3.4.0 has no warnings. Upgrading to 3.5.0 introduces a 6x UnhandledPromiseRejectionWarning warnings:

W20230713-14:04:07.850(-5)? (STDERR) (node:83994) UnhandledPromiseRejectionWarning: TypeError: Cannot set property 'isCalledFromAsync' of undefined W20230713-14:04:07.851(-5)? (STDERR) at Mongo.Collection. (packages/mongo/collection.js:1002:41) W20230713-14:04:07.851(-5)? (STDERR) at packages/alanning:roles/roles/roles_server.js:22:20 W20230713-14:04:07.851(-5)? (STDERR) at Array.forEach () W20230713-14:04:07.851(-5)? (STDERR) at module (packages/alanning:roles/roles/roles_server.js:22:3) W20230713-14:04:07.851(-5)? (STDERR) at fileEvaluate (packages/modules-runtime.js:336:7) W20230713-14:04:07.851(-5)? (STDERR) at Module.require (packages/modules-runtime.js:238:14) W20230713-14:04:07.852(-5)? (STDERR) at require (packages/modules-runtime.js:258:21) W20230713-14:04:07.852(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/packages/alanning_roles.js:1571:1 W20230713-14:04:07.852(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/packages/alanning_roles.js:1578:3 W20230713-14:04:07.852(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/boot.js:385:38 W20230713-14:04:07.852(-5)? (STDERR) at Array.forEach () W20230713-14:04:07.852(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/boot.js:210:21 W20230713-14:04:07.852(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/boot.js:439:7 W20230713-14:04:07.852(-5)? (STDERR) at Function.run (/Users/j/dev/test/.meteor/local/build/programs/server/profile.js:256:14) W20230713-14:04:07.852(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/boot.js:438:13 W20230713-14:04:07.853(-5)? (STDERR) (Use node --trace-warnings ... to show where the warning was created) W20230713-14:04:07.853(-5)? (STDERR) (node:83994) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) W20230713-14:04:07.853(-5)? (STDERR) (node:83994) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. W20230713-14:04:07.853(-5)? (STDERR) (node:83994) UnhandledPromiseRejectionWarning: TypeError: Cannot set property 'isCalledFromAsync' of undefined W20230713-14:04:07.853(-5)? (STDERR) at Mongo.Collection. (packages/mongo/collection.js:1002:41) W20230713-14:04:07.854(-5)? (STDERR) at packages/alanning:roles/roles/roles_server.js:22:20 W20230713-14:04:07.854(-5)? (STDERR) at Array.forEach () W20230713-14:04:07.854(-5)? (STDERR) at module (packages/alanning:roles/roles/roles_server.js:22:3) W20230713-14:04:07.854(-5)? (STDERR) at fileEvaluate (packages/modules-runtime.js:336:7) W20230713-14:04:07.854(-5)? (STDERR) at Module.require (packages/modules-runtime.js:238:14) W20230713-14:04:07.854(-5)? (STDERR) at require (packages/modules-runtime.js:258:21) W20230713-14:04:07.854(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/packages/alanning_roles.js:1571:1 W20230713-14:04:07.854(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/packages/alanning_roles.js:1578:3 W20230713-14:04:07.854(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/boot.js:385:38 W20230713-14:04:07.854(-5)? (STDERR) at Array.forEach () W20230713-14:04:07.855(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/boot.js:210:21 W20230713-14:04:07.855(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/boot.js:439:7 W20230713-14:04:07.855(-5)? (STDERR) at Function.run (/Users/j/dev/test/.meteor/local/build/programs/server/profile.js:256:14) W20230713-14:04:07.855(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/boot.js:438:13 W20230713-14:04:07.856(-5)? (STDERR) (node:83994) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2) W20230713-14:04:07.856(-5)? (STDERR) (node:83994) UnhandledPromiseRejectionWarning: TypeError: Cannot set property 'isCalledFromAsync' of undefined W20230713-14:04:07.856(-5)? (STDERR) at Mongo.Collection. (packages/mongo/collection.js:1002:41) W20230713-14:04:07.856(-5)? (STDERR) at packages/alanning:roles/roles/roles_server.js:22:20 W20230713-14:04:07.856(-5)? (STDERR) at Array.forEach () W20230713-14:04:07.856(-5)? (STDERR) at module (packages/alanning:roles/roles/roles_server.js:22:3) W20230713-14:04:07.856(-5)? (STDERR) at fileEvaluate (packages/modules-runtime.js:336:7) W20230713-14:04:07.856(-5)? (STDERR) at Module.require (packages/modules-runtime.js:238:14) W20230713-14:04:07.856(-5)? (STDERR) at require (packages/modules-runtime.js:258:21) W20230713-14:04:07.856(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/packages/alanning_roles.js:1571:1 W20230713-14:04:07.857(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/packages/alanning_roles.js:1578:3 W20230713-14:04:07.857(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/boot.js:385:38 W20230713-14:04:07.857(-5)? (STDERR) at Array.forEach () W20230713-14:04:07.857(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/boot.js:210:21 W20230713-14:04:07.857(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/boot.js:439:7 W20230713-14:04:07.857(-5)? (STDERR) at Function.run (/Users/j/dev/test/.meteor/local/build/programs/server/profile.js:256:14) W20230713-14:04:07.857(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/boot.js:438:13 W20230713-14:04:07.857(-5)? (STDERR) (node:83994) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3) W20230713-14:04:07.857(-5)? (STDERR) (node:83994) UnhandledPromiseRejectionWarning: TypeError: Cannot set property 'isCalledFromAsync' of undefined W20230713-14:04:07.857(-5)? (STDERR) at Mongo.Collection. (packages/mongo/collection.js:1002:41) W20230713-14:04:07.858(-5)? (STDERR) at packages/alanning:roles/roles/roles_server.js:22:20 W20230713-14:04:07.858(-5)? (STDERR) at Array.forEach () W20230713-14:04:07.858(-5)? (STDERR) at module (packages/alanning:roles/roles/roles_server.js:22:3) W20230713-14:04:07.858(-5)? (STDERR) at fileEvaluate (packages/modules-runtime.js:336:7) W20230713-14:04:07.858(-5)? (STDERR) at Module.require (packages/modules-runtime.js:238:14) W20230713-14:04:07.858(-5)? (STDERR) at require (packages/modules-runtime.js:258:21) W20230713-14:04:07.858(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/packages/alanning_roles.js:1571:1 W20230713-14:04:07.858(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/packages/alanning_roles.js:1578:3 W20230713-14:04:07.859(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/boot.js:385:38 W20230713-14:04:07.859(-5)? (STDERR) at Array.forEach () W20230713-14:04:07.859(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/boot.js:210:21 W20230713-14:04:07.859(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/boot.js:439:7 W20230713-14:04:07.859(-5)? (STDERR) at Function.run (/Users/j/dev/test/.meteor/local/build/programs/server/profile.js:256:14) W20230713-14:04:07.859(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/boot.js:438:13 W20230713-14:04:07.859(-5)? (STDERR) (node:83994) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4) W20230713-14:04:07.859(-5)? (STDERR) (node:83994) UnhandledPromiseRejectionWarning: TypeError: Cannot set property 'isCalledFromAsync' of undefined W20230713-14:04:07.860(-5)? (STDERR) at Mongo.Collection. (packages/mongo/collection.js:1002:41) W20230713-14:04:07.860(-5)? (STDERR) at packages/alanning:roles/roles/roles_server.js:22:20 W20230713-14:04:07.860(-5)? (STDERR) at Array.forEach () W20230713-14:04:07.860(-5)? (STDERR) at module (packages/alanning:roles/roles/roles_server.js:22:3) W20230713-14:04:07.860(-5)? (STDERR) at fileEvaluate (packages/modules-runtime.js:336:7) W20230713-14:04:07.860(-5)? (STDERR) at Module.require (packages/modules-runtime.js:238:14) W20230713-14:04:07.860(-5)? (STDERR) at require (packages/modules-runtime.js:258:21) W20230713-14:04:07.860(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/packages/alanning_roles.js:1571:1 W20230713-14:04:07.860(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/packages/alanning_roles.js:1578:3 W20230713-14:04:07.862(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/boot.js:385:38 W20230713-14:04:07.862(-5)? (STDERR) at Array.forEach () W20230713-14:04:07.862(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/boot.js:210:21 W20230713-14:04:07.862(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/boot.js:439:7 W20230713-14:04:07.862(-5)? (STDERR) at Function.run (/Users/j/dev/test/.meteor/local/build/programs/server/profile.js:256:14) W20230713-14:04:07.862(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/boot.js:438:13 W20230713-14:04:07.862(-5)? (STDERR) (node:83994) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 5) W20230713-14:04:07.872(-5)? (STDERR) (node:83994) UnhandledPromiseRejectionWarning: TypeError: Cannot set property 'isCalledFromAsync' of undefined W20230713-14:04:07.872(-5)? (STDERR) at Mongo.Collection. (packages/mongo/collection.js:1002:41) W20230713-14:04:07.872(-5)? (STDERR) at module (packages/alanning:roles/roles/roles_server.js:23:1) W20230713-14:04:07.872(-5)? (STDERR) at fileEvaluate (packages/modules-runtime.js:336:7) W20230713-14:04:07.873(-5)? (STDERR) at Module.require (packages/modules-runtime.js:238:14) W20230713-14:04:07.873(-5)? (STDERR) at require (packages/modules-runtime.js:258:21) W20230713-14:04:07.873(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/packages/alanning_roles.js:1571:1 W20230713-14:04:07.873(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/packages/alanning_roles.js:1578:3 W20230713-14:04:07.873(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/boot.js:385:38 W20230713-14:04:07.873(-5)? (STDERR) at Array.forEach () W20230713-14:04:07.873(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/boot.js:210:21 W20230713-14:04:07.873(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/boot.js:439:7 W20230713-14:04:07.873(-5)? (STDERR) at Function.run (/Users/j/dev/test/.meteor/local/build/programs/server/profile.js:256:14) W20230713-14:04:07.873(-5)? (STDERR) at /Users/j/dev/test/.meteor/local/build/programs/server/boot.js:438:13 W20230713-14:04:07.874(-5)? (STDERR) (node:83994) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 6)

github-actions[bot] commented 11 months ago

Thank you for submitting this issue!

We, the Members of Meteor Community Packages take every issue seriously. Our goal is to provide long-term lifecycles for packages and keep up with the newest changes in Meteor and the overall NodeJs/JavaScript ecosystem.

However, we contribute to these packages mostly in our free time. Therefore, we can't guarantee your issues to be solved within certain time.

If you think this issue is trivial to solve, don't hesitate to submit a pull request, too! We will accompany you in the process with reviews and hints on how to get development set up.

Please also consider sponsoring the maintainers of the package. If you don't know who is currently maintaining this package, just leave a comment and we'll let you know