Installing "node-red-contrib-discord-advanced" causing crash of my node-red

Hello all

i just install the node-red-contrib-discord-advanced today and my node red is not available anymore. I am unable to restart it.

this is the starting message i have received from the command line

Welcome to Node-RED

8 Dec 17:20:49 - [info] Node-RED version: v3.1.0
8 Dec 17:20:49 - [info] Node.js version: v18.17.1
8 Dec 17:20:49 - [info] Linux 6.1.21-v8+ arm64 LE
8 Dec 17:20:50 - [info] Loading palette nodes
8 Dec 17:20:59 - [info] Dashboard version 3.6.1 started at /ui
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (ca_FR.UTF-8)
8 Dec 17:21:01 - [info] Settings file : /home/openhabian/.node-red/settings.js
8 Dec 17:21:01 - [info] Context store : 'default' [module=memory]
8 Dec 17:21:01 - [info] User directory : /home/openhabian/.node-red
8 Dec 17:21:01 - [warn] Projects disabled : editorTheme.projects.enabled=false
8 Dec 17:21:01 - [info] Flows file : /home/openhabian/.node-red/flows.json
8 Dec 17:21:02 - [info] Server now running at http://127.0.0.1:1880/
8 Dec 17:21:02 - [warn] Using unencrypted credentials
8 Dec 17:21:02 - [info] Starting flows
8 Dec 17:21:02 - [info] [hue-bridge:Bridge sous-sol] Initializing the bridge (192.168.1.160)…
8 Dec 17:21:02 - [info] KNX-Unsecure: connection to insecure interface/router using node KNX Gateway
8 Dec 17:21:05 - [info] Started flows
8 Dec 17:21:05 - [info] [hue-bridge:Bridge sous-sol] Connected to bridge
8 Dec 17:21:05 - [red] Uncaught Exception:
8 Dec 17:21:05 - [error] Error [TokenInvalid]: An invalid token was provided.
at WebSocketManager.connect (/home/openhabian/.node-red/node_modules/discord.js/src/client/websocket/WebSocketManager.js:136:26)
at Client.login (/home/openhabian/.node-red/node_modules/discord.js/src/client/Client.js:228:21)
at /home/openhabian/.node-red/node_modules/node-red-contrib-discord-advanced/discord/lib/discordBotManager.js:28:11
at new Promise ()
at Object.getBot (/home/openhabian/.node-red/node_modules/node-red-contrib-discord-advanced/discord/lib/discordBotManager.js:6:17
at new discordMember (/home/openhabian/.node-red/node_modules/node-red-contrib-discord-advanced/discord/discordMember.js:10:23)
at Object.createNode (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/flows/util.js:157:27)
at Flow.start (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/flows/Flow.js:260:54)
at async Object.start [as startFlows] (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/flows/index.js:398:17)

Someone can guide for a walk around?
If i reinstall node red. Will i lost all the previous node?

Note: i think that the token i provide has cause the problem

Thank's in advance

Just start node-red in safe mode (search forum for safe mode), fix your error then deploy

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.