API problem

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
Dax
Posts: 6
Joined: Wed Jan 22, 2020 9:24 am

API problem

Post by Dax »

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"}
Post Reply