Login problem 2.0.1
-
@crazycells No
-
Just upgraded to 2.0.1, and also unable to login. This error appears in the CLI
(node:961044) UnhandledPromiseRejectionWarning: ReferenceError: Blob is not defined at Object.utils.generateUUID (/home/sudonix.dev/nodebb/public/src/utils.js:78:43) at authenticationController.onSuccessfulLogin (/home/sudonix.dev/nodebb/src/controllers/authentication.js:369:22) at Object.wrapperCallback [as onSuccessfulLogin] (/home/sudonix.dev/nodebb/src/promisify.js:46:11) at authenticationController.doLogin (/home/sudonix.dev/nodebb/src/controllers/authentication.js:355:33) at processTicksAndRejections (internal/process/task_queues.js:95:5) at async /home/sudonix.dev/nodebb/src/controllers/authentication.js:311:4 (Use `node --trace-warnings ...` to show where the warning was created) (node:961044) 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) (node:961044) [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.
EDIT: Seems my specific issue is related to
nodebb-widget-board-stats
. Disable that, and login seems to work. Going to try and enable all other plugins one by one to test.EDIT2:
nodebb-plugin-2factor
also does not work with 2.0.1
EDIT3:nodebb-plugin-embed
also does not work with 2.0.1
EDIT4: Hopefully this is of some use to others. Here's my list of confirmed working plugins with2.0.1
(those that are activated)* @nodebb/[email protected] (installed, enabled) * [email protected] (installed, disabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, disabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, disabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, disabled) * [email protected] (installed, disabled) * [email protected] (installed, disabled) * [email protected] (installed, disabled) * [email protected] (installed, disabled) * [email protected] (installed, enabled)
I can now login and everything is functional under 2.0.1 apart from those plugins that I called out above.
-
For anyone wondering the issue is fixed here https://github.com/NodeBB/nodebb-plugin-2factor/commit/e0dece96024fcf230dc2727740a50e3375f6b16e
Using the client side utils will fail when called on the server side with the error @phenomlab posted
(node:961044) UnhandledPromiseRejectionWarning: ReferenceError: Blob is not defined
-
-
any chance for the https://github.com/psychobunny/nodebb-widget-board-stats too?
-
@murcs You can simply take the file from there and overwrite in your own install.
For example, if you locate the plugin itself in your folder structure, then open
library.js
and changeconst utils = require.main.require('./public/src/utils');
To
const utils = require.main.require('./src/utils');
And rebuild, this should then work.