Closed titiviking closed 7 months ago
Hey there @kane610, mind taking a look at this issue as it has been labeled with an integration (unifi
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
unifi documentation unifi source (message by IssueLinks)
Similar issues have been reported before and they are typically resolved by restarting the host of the unifi controller.
401 also means unauthorised so have you actually setup your account properly?
In the meantime I did a firmware upgrade and it included a reboot... but the issue persists...
Account is setup correctly as the login succeeds (JWT token returned), but subsequent API's seem to omit the authorization header, hence returning a 401
Also, Unifi console confirms successful login, so connectivity and credentials are ok.
Have you given the proper access rights to the user? What version of unifi os and network app are you running?
Yes I did provide proper rights...
Now its working, no idea why it suddenly was able to login...
I have the exact same issue on 2024.2.0
It looks similar to the 403 issue (#109067). When I reload the integration it all works fine. I don't have to enter my password again.
Problem is that the tile is still showing on the integration page with a red border and a reconfigure button.
This issue exists intermittently for both Unifi Protect and Unifi Network (I don't have any of the other Unifi tools).
Restarting the Unifi controller does not fix the issue for me (Unifi Cloud Key G2 Plus with UniFi OS Version 3.2.10, Unifi Network version 8.0.28 and Unifi Protect version 2.11.21, all are the latest version as of them moment I write this)
I have the exact same issue on 2024.2.0
It looks similar to the 403 issue (#109067). When I reload the integration it all works fine. I don't have to enter my password again.
Problem is that the tile is still showing on the integration page with a red border and a reconfigure button.
This issue exists intermittently for both Unifi Protect and Unifi Network (I don't have any of the other Unifi tools).
Restarting the Unifi controller does not fix the issue for me (Unifi Cloud Key G2 Plus with UniFi OS Version 3.2.10, Unifi Network version 8.0.28 and Unifi Protect version 2.11.21, all are the latest version as of them moment I write this)
From what you're describing it's not the same as this issue as you can get your system to connect
Ok, then I will open a new issue for this. No problem.
The problem
I'm trying to configure the Unifi integration. Providing all details with local user, it times out and fails...
Looking at debug logs, login is happening properly, but any subsequent request fails with 401. Example snipped of logs added below
What version of Home Assistant Core has the issue?
2024.1.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
unifi
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response