Repository navigation
Replies: 2 comments
|
I've done a bit more work on this to see if I can find the root cause, I'm using a newly created local user with super admin permissions to remove any likely issues with permissions: Using Postman I can login successfully with my local user POST https://192.168.1.15:443/api/auth/login BODY This returns data cookies and tokens etc If you try to login again without clearing the cookies you get { Clearing the cookies and TOKENS in Postman allows another login Once logged in you can get camera information using https://192.168.1.15:443/proxy/protect/api/cameras So as far as I can tell the local user and permissions on Unifi are correct. When I run Unifi Protect Backup (which uses uiprotect) I get a 403 forbidden error at login - which may or may not be related to being cookies or tokens hanging around in the Docker environment I am using. Anyway - the backup wont run due to this error that uiprotect is throwing. Any other ideas welcome. Gav |
|
This is about unifi-protect-backup, which pins an old uiprotect (10.2.2), so please raise it in that project. Closing here. |
Uh oh!
There was an error while loading. Please reload this page.
Hi - I am using https://github.com/ep1cman/unifi-protect-backup which uses uiprotect for connection and authentication.
I have used it successfully in the past but having started using it again I am getting the error below, I have checked and rechecked the user and permissions as far as I can and can't find to root cause of the issue.
I wanted to try and debug the issue using uiprotect python library, but I am not an expert in this area so have struggled to run it in WSL.
uiprotect.exceptions.NotAuthorized: Request failed: https://[ip address]/api/auth/login - Status: 403 - Reason: Forbidden
The relevant section of the environment file is as follows:
environment:
- UFP_USERNAME=[redacted]
- UFP_PASSWORD=[redacted]
- UFP_ADDRESS=[redacted]
- UFP_SSL_VERIFY=false
I can log on using this user successfully in the Web UI and via Postman - so I am not sure if it is a local issue or something about the network that is obvious but I am missing.
Any help on debugging or similar would be gratefully received.
Regards.
Gavin
All reactions