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

UnifiTransportError after FW upgrade #30

Open
menvol3 opened this issue Oct 15, 2021 · 4 comments
Open

UnifiTransportError after FW upgrade #30

menvol3 opened this issue Oct 15, 2021 · 4 comments

Comments

@menvol3
Copy link

menvol3 commented Oct 15, 2021

Hi @nickovs,

Thank You for this tool, it worked perfectly for me, but today i updated FW on my Cloud Key Gen2 and now I’m receiving and error unificontrol.exceptions.UnifiTransportError: 404:
Here is my Client initialisation
def get_client():
cert = ssl.get_server_certificate((host, 8443))
return UnifiClient(host=host,
username=username, password=password, site="default", cert=cert)

Can you please help me to solve this issue ?

@menvol3
Copy link
Author

menvol3 commented Oct 15, 2021

Python version - 3.7.3
unificontrol - 0.2.9
Cloud Key version - 2.1.11
Network version - 6.4.54
SSLcert - unifi.local Expires: Thursday, 18 January 2024, 15:01:26 Eastern European Standard Time

@menvol3
Copy link
Author

menvol3 commented Oct 16, 2021

So problem is that this lib should be updated. Because in recent Unifi updates api call url was changed
https://github.com/finish06/pyunifi/blob/master/pyunifi/controller.py#L95

@nickovs
Copy link
Owner

nickovs commented Oct 16, 2021

@menvol3 Is correct in that the library needs an update. Sadly it's not as simple as just changing the base URL; there are a number of the API endpoints that have moved around and some that have changed the HTTP methods. Unfortunately I've been very busy with my day job and have not yet had time to build a complete new release.

@BigIronLinux
Copy link

I'm getting this error as well with UniFi OS 2.2.12 on the Cloud Key Gen2 Plus. I just found this project while trying to find a way to export a detailed device list (great work!). Do you have any suggestions to work around this?

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

3 participants