iobroker-community-adapters / ioBroker.unifi

ioBroker.unifi is an ioBroker adapter for your UniFi network devices.
MIT License
73 stars 24 forks source link

Error 401 - " Unauthorized" - After updating UDM Pro to UniFi OS 3.2.7, #723

Closed Stroell closed 9 months ago

Stroell commented 9 months ago

Hi, I have updated my UDM Pro to UniFi OS 3.2.7 (currently in RC) and after that I get the following error for the Unifi and Unifi Protect Adapter:

Error site undefined (data): {"error":{"code":401,"message":"Unauthorized"}}

[updateUnifiData-login site undefined] error: Request failed with status code 401, stack: AxiosError: Request failed with status code 401 at settle (/opt/iobroker/node_modules/node-unifi/node_modules/axios/lib/core/settle.js:19:12) at IncomingMessage.handleStreamEnd (/opt/iobroker/node_modules/node-unifi/node_modules/axios/lib/adapters/http.js:570:11) at IncomingMessage.emit (node:events:529:35) at IncomingMessage.emit (node:domain:489:12) at endReadableNT (node:internal/streams/readable:1400:12) at processTicksAndRejections (node:internal/process/task_queues:82:21)

image

I guess this has to do with the Introduction of UniFi Identity, but that´s just a guess

Versions:

Additional context
Add any other context about the problem here.

FiraSenax commented 9 months ago

Can confirm the issue, my UDM Pro upgraded tonight as well automaticly to this version and after a restart of the unifi adapter same error as above.

FiraSenax commented 9 months ago

Issue is fixed for me with the Beta Tree version 0.6.7

Stroell commented 9 months ago

Thank you @jens-maus for the quick fix 👍