Closed dghodgson closed 6 years ago
Also tried with &Monitor[Orientation]='1'
, &Monitor[Orientation]='180'
, and &Monitor[Orientation]='vert'
, but I'm still getting the same error.
It seems as though &Monitor[Orientation]=1
works, so the API must be using the enum's index directly. Not sure exactly why the value needed to be without quotes of any kind.
Either way, I'm going to leave this open as the API call should still be using the default value (or not providing a value at all? The table has a default value set already), which isn't happening for whatever reason.
I'm not sure if its related - but if you currently try to add a monitor through the webui, it says the view does not exist. @connortechnology has said this is still going through some changes a few days ago.
I may have resolved this with my latest commits.
Running 1.31.12~20171105100058-xenial from the PPA, Ubuntu 16.04
When I query the API like so:
I get the following error:
This remains true even if I add
&Monitor[Orientation]='0'
to the query (no change with double quotes). I double checked the zm_create.sql file that came with the package, and everything looks correct for the Monitors table. Specifically, it showsAdding a monitor through the web interface works as expected. Querying the API to get the monitor's settings also works. Copying those settings and using them to re-add the monitor via
curl
(after removing through the web interface) fails with the aforementioned error.Because of that, I'm assuming the error lies somewhere in the API code, but I'm too unfamiliar with it to pinpoint where the issue lies.
I'd also like to point out that this wasn't a problem roughly one to two months ago when I last tried this (ubuntu 16.04, using the ppa, not 100% sure which version)