Comments (8)
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
from unifi-api-browser.
No problem;-) Typical case of RubberDucking 😉
https://www.youtube.com/watch?v=huOPVqztPdc
from unifi-api-browser.
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:
https://demo.ui.com:443
user: demo
password: demo
from unifi-api-browser.
Please share (anonymized) debug output if you keep encountering issues.
from unifi-api-browser.
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?
from unifi-api-browser.
Ok... So it works when pointed to the demo site... Am I missing a configuration step within the UniFi controller software perhaps?
from unifi-api-browser.
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.
from unifi-api-browser.
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:
https://community.ubnt.com/t5/UniFi-Wireless/After-upgrade-to-5-10-12-api-login-giving-app-err-invalid/m-p/2671107
Debug Output:
-----------LOGIN-------------
Array
(
[url] => https://unifi.domain.com:8443/api/login
[content_type] => application/json;charset=UTF-8
[http_code] => 400
[header_size] => 309
[request_size] => 241
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.839083
[namelookup_time] => 0.004345
[connect_time] => 0.004724
[pretransfer_time] => 0.046092
[size_upload] => 42
[size_download] => 57
[speed_download] => 67
[speed_upload] => 50
[download_content_length] => 57
[upload_content_length] => 42
[starttransfer_time] => 0.839024
[redirect_time] => 0
[redirect_url] =>
[primary_ip] => 10.1.2.6
[certinfo] => Array
(
)
[primary_port] => 8443
[local_ip] => 10.1.2.60
[local_port] => 45954
)
----------RESPONSE-----------
HTTP/1.1 400
vary: Origin
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: Access-Control-Allow-Origin,Access-Control-Allow-Credentials
X-Frame-Options: DENY
Content-Type: application/json;charset=UTF-8
Content-Length: 57
Date: Mon, 11 Feb 2019 14:27:51 GMT
Connection: close
{"meta":{"rc":"error","msg":"api.err.Invalid"},"data":[]}
-----------------------------
from unifi-api-browser.
Related Issues (20)
- 24hr usage HOT 2
- Any documentation available? HOT 2
- All devices HOT 3
- Removing users across all sites HOT 1
- UI Cloud Controller integration HOT 3
- Permission denied (13) when loading sites HOT 9
- Unable to get list of sites from local UCG Ultra HOT 1
- Default Site / Collection HOT 4
- Connection Error HOT 2
- How can I see all energy (watts) being usage on the network HOT 1
- UniFi controller login failure HOT 4
- Is there any way to display the results directly? HOT 4
- API IP from VPN HOT 7
- UDM Pro firmware beta version 1.11.0-14 and 1.11.0-15 HOT 2
- API does'nt work need help HOT 7
- Access to WLAN password HOT 15
- Possible issue with CORS HOT 3
- Demo not working HOT 2
- Unifi 7.0 Controller API Issue HOT 3
- Node lacks support for Ubiquiti power strips and plugs. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unifi-api-browser.