I'm trying to get zmNinja to integrate into ZM but /zm/api/host/monitors.json fails (when executing it from Chrome). The error I receive is:
{"success":false,"data":{"name":"Not Found","message":"Not Found","url":"\/zm\/api\/host\/monitors.json","exception":{"class":"MissingActionException","code":404,"message":"Action HostController::monitors() could not be found."}}}
/zm/api/host/getVersion.json works fine by returning:
{"version":"1.34.20","apiversion":"2.0"}
Any guidance will be appreciated.
/zm/api/host/monitors.json doesn't return monitors
- knight-of-ni
- Posts: 2404
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: /zm/api/host/monitors.json doesn't return monitors
Referring to the documentation:
https://zoneminder.readthedocs.io/en/st ... all-events
The correct url is: http://server/zm/api/monitors.json
https://zoneminder.readthedocs.io/en/st ... all-events
The correct url is: http://server/zm/api/monitors.json
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
All of these can be found at https://zoneminder.blogspot.com/
Re: /zm/api/host/monitors.json doesn't return monitors
Thx for the prompt response and correcting the url I was testing. I unfortunately still have an issue though. This is the error i'm receiving.
{"name":"An Internal Error Has Occurred.","message":"An Internal Error Has Occurred.","url":"\/zm\/api\/monitors.json"}
I'm a noob to ZM so rather lost to which logs would be relevant to include to get help with-out wasting people's time.
{"name":"An Internal Error Has Occurred.","message":"An Internal Error Has Occurred.","url":"\/zm\/api\/monitors.json"}
I'm a noob to ZM so rather lost to which logs would be relevant to include to get help with-out wasting people's time.
- knight-of-ni
- Posts: 2404
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: /zm/api/host/monitors.json doesn't return monitors
Internal error message sounds like http 500, so check your web server logs for clues.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
All of these can be found at https://zoneminder.blogspot.com/
Re: /zm/api/host/monitors.json doesn't return monitors
knight-of-ni, you are correct. I found the following in the web server logs.
[17/Sep/2020:11:37:31 +0200] "GET /zm/api/monitors.json HTTP/1.1" 500 313 "-" "curl/7.58.0"
[17/Sep/2020:11:37:31 +0200] "GET /zm/api/monitors.json HTTP/1.1" 500 313 "-" "curl/7.58.0"