API problem
Posted: Tue May 05, 2020 4:14 pm
Hi, sorry for my english.
I'm trying to use the APIs in an Android App, but at the states.json command, I get an error in the 'Definition' field:
{"success":false,"data":{"name":"An Internal Error Has Occurred.","message":"An Internal Error Has Occurred.","url":"\/zm\/api\/states.json?token=ey...Hls","exception":{"class":"PDOException","code":"HY000","message":"SQLSTATE[HY000]: General error: 1364 Field 'Definition' doesn't have a default value"}}}
The same command on the browser responds correctly:
{"states":[{"State":{"Id":"1","Name":"default","Definition":"","IsActive":"1"}}]}
How can this be resolved?
Thanks
Zoneminder:
{"version":"1.34.9","apiversion":"2.0"}
I'm trying to use the APIs in an Android App, but at the states.json command, I get an error in the 'Definition' field:
{"success":false,"data":{"name":"An Internal Error Has Occurred.","message":"An Internal Error Has Occurred.","url":"\/zm\/api\/states.json?token=ey...Hls","exception":{"class":"PDOException","code":"HY000","message":"SQLSTATE[HY000]: General error: 1364 Field 'Definition' doesn't have a default value"}}}
The same command on the browser responds correctly:
{"states":[{"State":{"Id":"1","Name":"default","Definition":"","IsActive":"1"}}]}
How can this be resolved?
Thanks
Zoneminder:
{"version":"1.34.9","apiversion":"2.0"}