Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login fails after update to current beta Unifi-OS 3.2.5 or 3.2.6 on UDMP #189

Open
pfanntec opened this issue Oct 23, 2023 · 5 comments
Open

Comments

@pfanntec
Copy link

pfanntec commented Oct 23, 2023

Describe the bug
Ubiquiti must have changed something on the login. The adapter turns green but only error messages are displayed in the log. The login fails.

To Reproduce

  1. update Unifi-OS to 3.2.5 or 3.2.6
  2. login fails

Screenshots & Logfiles

2023-10-23 20:17:44.074 - info: host.Server instance system.adapter.unifi-protect.0 started with pid 299504
2023-10-23 20:17:45.023 - error: unifi-protect.0 (299504) getApiAuthBearerToken: Unifi Protect reported authorization failure
2023-10-23 20:17:45.024 - error: unifi-protect.0 (299504) Couldn't login.
2023-10-23 20:17:45.034 - error: unifi-protect.0 (299504) getCameraList: Unifi Protect reported authorization failure
2023-10-23 20:17:45.046 - error: unifi-protect.0 (299504) getApiAuthBearerToken: Unifi Protect reported authorization failure
2023-10-23 20:17:45.046 - error: unifi-protect.0 (299504) Couldn't login.
2023-10-23 20:17:45.537 - error: unifi-protect.0 (299504) getMotionEvents: Unifi Protect reported authorization failure
2023-10-23 20:17:45.552 - error: unifi-protect.0 (299504) getApiAuthBearerToken: Unifi Protect reported authorization failure
2023-10-23 20:17:45.552 - error: unifi-protect.0 (299504) Couldn't login.

Versions:

  • Adapter version: v0.0.13
  • JS-Controller version: 5.0.14
  • Node version: v18.18.2
  • Operating system: Debian12
@777Timo
Copy link

777Timo commented Oct 25, 2023

Hello,
same here with Unify NVR and Protect 2.9.30 and OS 3.2.5

unifi-protect.0 | 2023-10-25 13:38:30.038 | error | Couldn't login.
unifi-protect.0 | 2023-10-25 13:38:30.038 | error | getApiAuthBearerToken: Unifi Protect reported authorization failure
unifi-protect.0 | 2023-10-25 13:38:30.029 | error | getMotionEvents: Unifi Protect reported authorization failure

adapter is green and the log shows error objects did not get updates.

@ChrMaass
Copy link

ChrMaass commented Nov 4, 2023

Unfortunately, I have the same error. I can no longer connect to the Homebridge Unifi Protect plugin either. I hope we can identify the problem quickly.

@pfanntec pfanntec changed the title Login fails after update to current beta Unifi-OS 3.2.5 on UDMP Login fails after update to current beta Unifi-OS 3.2.5 or 3.2.6 on UDMP Nov 8, 2023
@pfanntec
Copy link
Author

It looks like unifi-os has stopped sending x-csrf-token headers since version 3.2.X.
Art-of-WiFi/UniFi-API-client#202 (comment)

Maybe the maintainer @peterbaumert can fix this before UI release a 3.2.x version as official.

@Stroell
Copy link

Stroell commented Dec 11, 2023

The issue has been fixed in the Unifi Network Adapter:
iobroker-community-adapters/ioBroker.unifi#723

Would be great if the issue could get fixed in this Adapter as well ❤️
The new Unifi OS is already in RC and will be released soon

@Bart1909
Copy link

Opened #199

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants