Error 404 when trying to start Node-red-contrib-hue

Hey there

im trying to connect knx and Phillps hue and everything were working well until i downloaded the palette Node-red-contrib-hue.
then it stopped working. My node red is running on a raspberry pi 4 model B. and when i try to start node red. I get this error

12 Dec 10:01:03 - [info] Node.js  version: v18.19.0
12 Dec 10:01:03 - [info] Linux 6.1.21-v8+ arm LE
12 Dec 10:01:05 - [info] Loading palette nodes
12 Dec 10:01:28 - [info] Settings file  : /home/admin/.node-red/settings.js
12 Dec 10:01:28 - [info] Context store  : 'default' [module=memory]
12 Dec 10:01:28 - [info] User directory : /home/admin/.node-red
12 Dec 10:01:28 - [warn] Projects disabled : editorTheme.projects.enabled=false
12 Dec 10:01:28 - [info] Flows file     : /home/admin/.node-red/flows.json
12 Dec 10:01:28 - [red] Uncaught Exception:
12 Dec 10:01:28 - [error] Api Error: Unexpected response status; 404
    at requireStatusCode200 (/home/admin/.node-red/node_modules/node-red-contrib-hue/node_modules/node-hue-api/hue-api/httpPromise.js:100:15)
    at _fulfilled (/home/admin/.node-red/node_modules/q/q.js:787:54)
    at /home/admin/.node-red/node_modules/q/q.js:816:30
    at Promise.promise.promiseDispatch (/home/admin/.node-red/node_modules/q/q.js:749:13)
    at /home/admin/.node-red/node_modules/q/q.js:557:44
    at flush (/home/admin/.node-red/node_modules/q/q.js:108:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)

This node has a number of long standing unresolved issues - Issues · urbiworx/node-red-contrib-hue · GitHub

It also hasnt been updated in over 9 years.

Have you tried other hue nodes?

PS: to start node-red, use safe mode - then you can uninstall that bad node.

node-red --safe

Also, please give this node 1 star in the flows library

yeah I saw it hadnt been updated in 9 years. but when i looked at the nodes it were the one that made the most sense to use.

I will go and give it 1 star in the flows libary

I will try and remove it with the bit you texted.

I still cant open node red to remove the bad nodes. do you have any idea what else I can do?

What happens when you run
node-red --safe
Note there is a space and two dashes.

if I do that I get this

admin@raspberrypi:~ $ node-red --safe
12 Dec 11:03:49 - [info] 

Welcome to Node-RED
===================

12 Dec 11:03:49 - [info] Node-RED version: v3.1.3
12 Dec 11:03:49 - [info] Node.js  version: v18.19.0
12 Dec 11:03:49 - [info] Linux 6.1.21-v8+ arm LE
12 Dec 11:03:51 - [info] Loading palette nodes
12 Dec 11:03:53 - [info] Settings file  : /home/admin/.node-red/settings.js
12 Dec 11:03:53 - [info] Context store  : 'default' [module=memory]
12 Dec 11:03:53 - [info] User directory : /home/admin/.node-red
12 Dec 11:03:53 - [warn] Projects disabled : editorTheme.projects.enabled=false
12 Dec 11:03:53 - [info] Flows file     : /home/admin/.node-red/flows.json
12 Dec 11:03:53 - [info] Server now running at http://127.0.0.1:1880/
12 Dec 11:03:53 - [warn] 

---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.

You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------

12 Dec 11:03:53 - [info] *****************************************************************
12 Dec 11:03:53 - [info] Flows stopped in safe mode. Deploy to start.
12 Dec 11:03:53 - [info] *****************************************************************
12 Dec 11:03:53 - [red] Uncaught Exception:
12 Dec 11:03:53 - [error] Api Error: Unexpected response status; 404
    at requireStatusCode200 (/home/admin/.node-red/node_modules/node-red-contrib-hue/node_modules/node-hue-api/hue-api/httpPromise.js:100:15)
    at _fulfilled (/home/admin/.node-red/node_modules/q/q.js:787:54)
    at /home/admin/.node-red/node_modules/q/q.js:816:30
    at Promise.promise.promiseDispatch (/home/admin/.node-red/node_modules/q/q.js:749:13)
    at /home/admin/.node-red/node_modules/q/q.js:557:44
    at flush (/home/admin/.node-red/node_modules/q/q.js:108:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)

That is not a well behaved node at all. Go into the .node-red folder (that is important) and run
npm remove node-red-contrib-hue
Then restart node-red.

thank you that worked

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