Authentication: TypeError: Promise.allSettled is not a function
-
I just installed nodebb, and it's working for the most part, but when someone else tries to register for an account, it lags a bunch, and I got this in the console:
(node:27066) UnhandledPromiseRejectionWarning: TypeError: Promise.allSettled is not a function at plugins.hooks.fire (/home/lospec/htdocs/_forum/src/controllers/authentication.js:174:33) at /home/lospec/htdocs/_forum/src/promisify.js:44:33 at cb (util.js:385:39) at process.internalTickCallback (internal/process/next_tick.js:72:19) (node:27066) 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(). (rejection id: 2) (node:27066) [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. (node:27066) UnhandledPromiseRejectionWarning: Error: [[register:gdpr_consent_denied]] at callback (/home/lospec/htdocs/_forum/src/user/index.js:252:43) at Promise (internal/util.js:282:30) at new Promise (<anonymous>) at callback (internal/util.js:281:12) at Promise.allSettled.callbacks.map (/home/lospec/htdocs/_forum/src/controllers/authentication.js:175:10) at Array.map (<anonymous>) at plugins.hooks.fire (/home/lospec/htdocs/_forum/src/controllers/authentication.js:174:54) at /home/lospec/htdocs/_forum/src/promisify.js:44:33 at cb (util.js:385:39) at process.internalTickCallback (internal/process/next_tick.js:72:19) (node:27066) 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(). (rejection id: 3) (node:27066) UnhandledPromiseRejectionWarning: TypeError: Promise.allSettled is not a function at plugins.hooks.fire (/home/lospec/htdocs/_forum/src/controllers/authentication.js:174:33) at /home/lospec/htdocs/_forum/src/promisify.js:44:33 at cb (util.js:385:39) at process.internalTickCallback (internal/process/next_tick.js:72:19) (node:27066) 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(). (rejection id: 4)
any idea how to fix this or why its happening?
-
@jim-bridger what version of Node are you using?
-
@jim-bridger upgrade to Node 14
Copyright © 2024 NodeBB | Contributors