Open gitothy opened 3 years ago
I’m using it on a RPi 3+ Python 3.5 aiohttp 3.5.4, and it works fine with a UDMP on 1.10 stable.
Fron the errors though, I suspect a problem with aiohttp, there are several annoying bugs in the latest version.
Try downloading an earlier version of aiohttp, and see if that helps.
Couldn't downgrade on Win10 due to dependancy errors but managed on Ubuntu. Am using Python 3.6.9 and I actioned this with the following:
python3 -m pip install aiohttp==3.5.4 --force-reinstall
Have re-tried and am getting exactly the same error message (excluding code number line changes).
What version of asyncio are you using? is it worth me trying to downgrade this also?
Thanks for the work here, has been invaluable in helping my understanding and with other projects.
Got a small issue to report. Am seeing an error after each fetch from the ws. It looks like the script connects, pulls it's first lot of data OK, then looses connection connection, waits for a timeout then reconnects and pulls again, then disconnects, in a loop.
Connecting to a UDMP on the latest beta firmware 1.11.0-14 and python 3.9.4 with hopefully all required dependencies installed and up to date. Have tried connecting from both a Windows and Linux host, both seeing the same issue. Server has a valid SSL certificate and using the script with the IP or FQDN doesn't change things. Command used:
./unifi_client.py unifi.mydomain.com username password -po 443 -D
Error after the first pull of data is returned on Win 10:
The error on Ubuntu is the same but gives slightly different info: