HttpDevice not working for no reason

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
Gorilla
Posts: 14
Joined: 03 Jan 2015 23:47

HttpDevice not working for no reason

Post by Gorilla »

I have a httpDevice that has worked great so far, making an external http get request. Now it stopped working, although a manual check of the url still works.
The log states:

Code: Select all

2015-12-21 10:10:12.192] [E] [8083] Callback execution error: TypeError: Cannot read property 'call' of undefined
    at ZAutomationAPIWebRequest.ZAutomationWebRequest.handleRequest (automation/WebserverRequestRouter.js:258:40)
    at automation/WebserverRequestRouter.js:32:35
    at WebServer.document_root (automation/Webserver.js:29:11)
An ideas?
A restart didn't help.
I'm. On v2.2.0.
Gorilla
Posts: 14
Joined: 03 Jan 2015 23:47

Re: HttpDevice not working for no reason

Post by Gorilla »

OK, I found out what caused my troubles.
Since I switched from a raspberry B to a raspberry 2 and added a webcam, my system was not stable anymore, the zway-server crashed every 2nd day for no reason without any error log.

The reason was a HTTP Device I created, which polls the status of a foscam via its api (to check if alarm detection is enabled or not).
This polling was set to every 2 seconds, which seemed to cause some trouble.
deactivating polling made my system stable again.
Post Reply