NRCHKB / node-red-contrib-unifi-os

Nodes to access UniFi data using endpoints and websockets
Apache License 2.0
26 stars 2 forks source link

Crashes node red 2.0.5 after a "full restart flows" #27

Closed 0rsa closed 2 years ago

0rsa commented 2 years ago

node-red @ 2.0.5 node-red-contrib-unifi-os @ 0.5.0

When I restart all my flows in node-red, my server crashes.

Log debug:

15 Aug 06:01:56 UniFi-Error Bad response from: https://192.168.100.60/api/logout +0ms 15 Aug 06:01:56 UniFi-Error Endpoint not found: Error: Request failed with status code 404 +8ms 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(). The promise rejected with the reason: Error: Endpoint not found at /nodered/node_modules/node-red-contrib-unifi-os/build/nodes/unifi.js:95:23 at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:95:5)

0rsa commented 2 years ago

Correct logout URL seems to be: /api/auth/logout

crxporter commented 2 years ago

@Shaquu

but also really quick, which UniFi hardware are you running? Dream machine, cloud key, etc

0rsa commented 2 years ago

Cloud Key Gen2 Plus @ 2.1.11 (official release channel)

Shaquu commented 2 years ago

I guess endpoint can differ between hardware? I will look at it.

Shaquu commented 2 years ago

@0rsa please test on latest dev version

Shaquu commented 2 years ago

Please open new issue if the problem persist.