Page 1 of 1

JSON error from controller

PostPosted: Thu Feb 13, 2020 10:09 am
by stewkenly
Hi, I have the uniFi controller running on the same mac as indigo and tell the plugin to connect to the controller. I keep seeing these error messages.
Starting plugin "uniFiAP 7.27.169" (pid 77825)
uniFiAP initializing ...
uniFiAP path To files: =================
uniFiAP indigo /Library/Application Support/Perceptive Automation/
uniFiAP installFolder /Library/Application Support/Perceptive Automation/Indigo 7.4/
uniFiAP plugin.py /Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/
uniFiAP Plugin params /Library/Application Support/Perceptive Automation/Indigo 7.4/Preferences/Plugins/com.karlwachs.uniFiAP/
uniFiAP Warning logger enabled for WARNING ==> TEST ONLY
uniFiAP Error logger enabled for ERROR ==> TEST ONLY
uniFiAP Critical Error logger enabled for CRITICAL ==> TEST ONLY
uniFiAP check /Library/Application Support/Perceptive Automation/Indigo 7.4/Logs/com.karlwachs.uniFiAP/plugin.log <<<< for detailed logging
uniFiAP Plugin short Name UniFi
uniFiAP my PID 77825
uniFiAP set params for indigo V 7.4
Started plugin "uniFiAP 7.27.169"
uniFiAP testing if variable enableTimeTracking_UniFi is == on/off/print-option to enable/end/print time tracking of all functions and methods (option:'',calls,cumtime,pcalls,time)
uniFiAP myLogSet setting parameters -- logFileActive= ; logFile= /Library/Application Support/Perceptive Automation/Indigo 7.4/Preferences/Plugins/com.karlwachs.uniFiAP/plugin.log; debugLevel= []
uniFiAP Error UNIFI executeCMDOnController has error, no json object returned: ('', ' % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\n')
uniFiAP Error UNIFI executeCMDOnController has error, no json object returned: ('', ' % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\n')
uniFiAP start runConcurrentThread, initializing loop settings and threads ..
uniFiAP Error UNIFI executeCMDOnController has error, no json object returned: ('', ' % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\r100 30 0 0 100 30 0 2008 --:--:-- --:--:-- --:--:-- 2142\n')
uniFiAP initialized ... looping


Is there something special that needs to be configured on the controller side I am missing?

Thanks!

Re: JSON error from controller

PostPosted: Thu Feb 13, 2020 10:55 am
by kw123
the connection seems not to work.

do you have any security ON on your mac, userid/ password correct , ip number correct .. sorry to ask these questions, but those are my most common mistakes.

could you send me your sendup .. config etc.. !! there are userid and passwords in there !!

karlwachs me com

Karl

Re: JSON error from controller

PostPosted: Thu Feb 20, 2020 1:33 pm
by stewkenly
HI Karl ,

Thanks for the reply and appreciate the questions! I attached my config. The controller is running on the same mac, ip address is correct as are username and password. As for security I don't have anything other than stock apple security. The whole system is behind my firewall. I also added a view of the controller web interface, not sure what specifically you are looking for though.

Thanks,

Stew

Re: JSON error from controller

PostPosted: Thu Feb 20, 2020 8:38 pm
by evansgo
Change Primrose House to default....
Not an expert on this but I‘m pretty sure that’s your problem looking at the url