zmNinja Login validated but API failed
Posted: Sun Oct 11, 2020 11:38 pm
Fresh install of the Zoneminder plugin in FreeNAS.
Zoneminder Version: 1.34.9
Options:
When I try to use the zmNinja app, I get the following error:
Login validated but API failed.
Following the zmNinja documentation I checked:
http://server/zm/api/host/getVersion.json (and the page source)
http://server/zm/api/monitors.json
http://server/zm/api/events.json
and there were no issues on the first time I attempted access to these pages in Firefox. Subsequent attempts gave me this error:
Chrome has the same issue, where the first attempt worked fine, but any other attempt caused an UnauthorizedException. I've tried logging in and out on another tab, but it doesn't seem to fix the issue.
Appending to the end of the URL fixes the issue.
My server is on 192.168.50.2, and my desktop is on 192.168.1.5
I am able to access Zoneminder fine through Firefox or Chrome.
I won't be opening up Zoneminder to the internet. The plan is to use OpenVPN to gain access through the internet.
This is the account I'm trying to login as:

Zoneminder Version: 1.34.9
Options:

When I try to use the zmNinja app, I get the following error:
Login validated but API failed.
Following the zmNinja documentation I checked:
http://server/zm/api/host/getVersion.json (and the page source)
http://server/zm/api/monitors.json
http://server/zm/api/events.json
and there were no issues on the first time I attempted access to these pages in Firefox. Subsequent attempts gave me this error:
Code: Select all
{"success":false,"data":{"name":"Not Authenticated","message":"Not Authenticated","url":"\/zm\/api\/host\/getVersion.json?p=%2Fhost%2FgetVersion.json","exception":{"class":"UnauthorizedException","code":401,"message":"Not Authenticated"}}}
Appending
Code: Select all
?username=Viewer&password=pass
My server is on 192.168.50.2, and my desktop is on 192.168.1.5
I am able to access Zoneminder fine through Firefox or Chrome.
I won't be opening up Zoneminder to the internet. The plan is to use OpenVPN to gain access through the internet.
This is the account I'm trying to login as:
