-
Notifications
You must be signed in to change notification settings - Fork 145
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
Upgrade UniFi Controller Version 5.10.12 breaks login #60
Comments
Although this is a pre-release of the API browser tool and a more recent API client version, nothing major has changed. The only major change that was recently implemented was to deal with nginx reverse proxies mangling the responses. Have you tried connecting to a previous controller version? You always test using the UBNT demo controller which currently runs 5.9.29:
|
Please share (anonymized) debug output if you keep encountering issues. |
I pushed a new version of the API browser tool to the repository which includes the latest API client class. Can you try out this version to see whether it fixes your issue? |
Ok... So it works when pointed to the demo site... Am I missing a configuration step within the UniFi controller software perhaps? |
Is this controller one that has been frequently upgraded over time or is it a fresh install? Could be some inconsistency in the database (not likely) or maybe a reverse proxy in front of the controller that is mangling the output? Otherwise, enable debug in the config file and look through the debug output for clues. |
My install was a fresh install of 5.9 and I upgraded over the weekend to 5.10. My goal is to eventually setup some scripts on the command line to interface with Zabbix and control presense status of certain devices (am I home?, etc.). I don't believe that there is a reverse proxy. It's just an apache instance running on Ubuntu 18.04. I've been following this as well: Debug Output:
|
I AM AN IDIOT... I AM USING THE WRONG PASSWORD. I ORIGINALLY HAD A WEAK PASSWORD AND CHANGED IT BUT FORGOT TO CHANGE IT IN THE CONF FILE... I PUBLICLY APPOLOGIZE FOR MY IGNORANCE. LOL LOL LOL |
No problem;-) Typical case of RubberDucking 😉 |
I am interested in trying this UniFi API tool, BUT, it appears that the latest version (5.10.12) breaks the API apparently...
I've tried with a simple bash script:
username="admin"
password="MyPassword"
baseurl="https://unifi.domain.com:8443"
curl --data "{\"username\":\"$username\", \"password\":\"$password\"}" $baseurl/api/login
And this results in:
{"meta":{"rc":"error","msg":"api.err.Invalid"},"data":[]}
The actual error in the API Browser is:
The text was updated successfully, but these errors were encountered: