Error: "ok not found or status_code:412 not in [200]"

Posted on
Fri Mar 05, 2021 8:30 am
palantir offline
Posts: 73
Joined: Sep 24, 2014

Error: "ok not found or status_code:412 not in [200]"

Hi Karl -

I'm getting 2 identical error messages every 30-40 seconds which seems related to my Controller:

Code: Select all
5 Mar 2021 at 15:22:35
   uniFiAP Error                   UNIFI executeCMDOnController  login url:https://192.168.20.10:443/api/auth/login
gives, ok not found or status_code:412 not in [200]
  error: {"data":[],"meta":{"rc":"error","msg":"api.err.LoginRequired"}}

   uniFiAP Error                   UNIFI executeCMDOnController  login url:https://192.168.20.10:443/api/auth/login
gives, ok not found or status_code:412 not in [200]
  error: {"data":[],"meta":{"rc":"error","msg":"api.err.LoginRequired"}}


The device on 192.168.20.10 is my Unifi controller.

I have been trying different username/password combinations for Controller, but cannot seem to figure out which username/password needs to be provided in which section of the plugin configuration. Based on this error, could you point me what's causing this?

I seem to be getting the devices state from the Controller correctly, so everything seems to work, despite this error message (that's filling up my logging now...).

Many thanks,
Ronald

Posted on
Sun Mar 07, 2021 9:31 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Error: "ok not found or status_code:412 not in [200]"

Could you email me (karlwachs at me com)
Menu/ print config
That contains the userids and passwords,
Ports, ip number etc.
don’t post.

Karl.


Sent from my iPhone using Tapatalk

Posted on
Sun Mar 07, 2021 4:25 pm
palantir offline
Posts: 73
Joined: Sep 24, 2014

Re: Error: "ok not found or status_code:412 not in [200]"

It's in your inbox. Thanks!
Ronald

Posted on
Wed Mar 10, 2021 10:20 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Error: "ok not found or status_code:412 not in [200]"

You need mac os 10.14 to run the new functionality

In order to connect to UniFi controller v6.x your mac needs to support ssl/tsl 1.1 security layer for python request and Mac OS 10.13 and lower does not come installed with it.

The unifi controller v6.v rejects connections with the outdated security versions.
I have not figured out how to use curl to connect to v6.x which you can use to connect to v5.x. Curl comes with its own security modules which would do the trick.

you can still use the existing functions for up/down info for Ip devices querying the wifiap and switches and gateway directly.
It does
Tail -f /var/log/messages
To get instantaneous changes
And
mca-dump
Every minute to get the whole dB form these devices

To switch off the controller queries in config
Set controller to off
Set controller Ip to blank
Set controller userid to blank.
(The first one should be sufficient ...)

Karl


Sent from my iPhone using Tapatalk hi

Posted on
Wed Mar 17, 2021 9:10 am
palantir offline
Posts: 73
Joined: Sep 24, 2014

Re: Error: "ok not found or status_code:412 not in [200]"

Thanks Karl -

Since my server is on 10.13.6, I have made disabled the Controller polling. That made the error message go away indeed.

Many thanks!
Ronald

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests