Closed pcdiks closed 3 years ago
The monitor API is not working
What happens if you try https://abc.abc.nl/zm/api/monitors/index/Type%20!=:WebSite.json
in a browser?
I get this when I’m not logged in:
{"success":false,"data":{"name":"Not Authenticated","message":"Not Authenticated","url":"\/zm\/api\/monitors\/index\/Type%20!=:WebSite.json","exception":{"class":"UnauthorizedException","code":401,"message":"Not Authenticated"}}}
and this when I’m logged in:
{"success":false,"data":{"name":"An Internal Error Has Occurred.","message":"An Internal Error Has Occurred.","url":"\/zm\/api\/monitors\/index\/Type%20!=:WebSite.json","exception":{"class":"PDOException","code":"42S22","message":"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'Monitor.HourEvents' in 'field list'"}}}
So your 1.36 APIs are not working for some reason (logged in response). You'll need to resolve that first.
Ok, thanks for the help. I will look in to this.
the check in the documentation gives a good reply: https://abc.abc.nl/zm/api/host/getVersion.json
{"version":"1.36.0","apiversion":"2.0"}
Clearly a zoneminder issue so I close this issue.
The version of zmNinja you are reporting:
The version and OS of ZoneMinder you are using:
Platform zmNinja is running on
Did you build the package from source code yourself? N
Describe the bug This morning the app worked perfectly with zoneminder 1.34.26 but after upgrading to 1.36.0 it stopped. If I start the app it logs in and then tries to load the monitors. They never show up.
Debug logs
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.