Closed 0rsa closed 2 years ago
Correct logout URL seems to be: /api/auth/logout
@Shaquu
but also really quick, which UniFi hardware are you running? Dream machine, cloud key, etc
Cloud Key Gen2 Plus @ 2.1.11 (official release channel)
I guess endpoint can differ between hardware? I will look at it.
@0rsa please test on latest dev version
Please open new issue if the problem persist.
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)