Closed ChromoX closed 6 years ago
The POST requests(Only _login) are the only ones that have the above issues. Once logged in get requests have no problem.
I have never been able to reproduce this issue. Have you gathered any additional information?
It might have been Docker networking stuff as the Unifi controller was in a container.
I switched over to using some module that uses ssh and goes direct to the AP instead of to the Unifi interface.
@ChromoX can you share with me how you solved your issues? I'm running in docker and am having some issues getting this to work aswell. Thanks,
I use this now instead of pyunifi: https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/device_tracker/unifi_direct.py
I have verified that I can login and have full use of the Unifi manager.
Whenever I try to initialize a Controller I would say I have a 1/6 chance of actually logging in. The other 5/6 times I simply have a trace-back that looks like the following:
I've been attempting to remedy this issue in some form which included me adding a couple of lines for a Requests adapter for max_retries, but this doesn't seem to actually help.
It could be related to https://github.com/requests/requests/issues/2422 and https://github.com/requests/requests/issues/2448