All calls to zautomation api are now returning an error 500. These calls all previously returned values:
http://localhost:8083/ZAutomation/api/v1/devices
http://localhost:8083/ZAutomation/api/v1/status
etc...
but now all return:
Error 500: Internal Server Error
Uncaught TypeError: Property 'api' of object [object Object] is not a function
I've tried restarting the raspberry pi and restarting the zway server. The expert control panel is still available and functions properly. There is one device, a kwikset lock, included in the network and placed in a zone.
Any advice on how to fix or begin debugging this?
Error 500 for all Zautomation API calls
-
- Posts: 19
- Joined: 25 Jun 2014 12:47
Re: Error 500 for all Zautomation API calls
Solved.
In case anyone else runs into this. I had a duplicate EventLog module in /opt/z-way-server/automation/modules that I was using as a template for creating a new module. It was loading and crashing all zautomation calls even when index.js was renamed and autoload was "false."
On raspi this helped me find the source of error:
sudo nano /var/log/Z-Way.log
In case anyone else runs into this. I had a duplicate EventLog module in /opt/z-way-server/automation/modules that I was using as a template for creating a new module. It was loading and crashing all zautomation calls even when index.js was renamed and autoload was "false."
On raspi this helped me find the source of error:
sudo nano /var/log/Z-Way.log