hobinjk / gateway-prometheus-translator

Translator (export) from the Web Thing API to Prometheus metrics
Mozilla Public License 2.0
12 stars 2 forks source link

Error: "Cannot read property 'set' of undefined" after updating Gateway to 0.7.0 #4

Closed che-wf closed 5 years ago

che-wf commented 5 years ago

I haven't had much time to look into it yet, but I just updated my Raspberry Pi installation of Gateway from 0.6.1 to 0.7.0. I have some Wemo devices and some Netatmo devices. The Wemo devices translate fine. But my Netatmo devices data hasn't been translating. I'm looking into the logs using PM2. I'm seeing the logs of the Wemo, but every time it looks like it is trying to read the Netatmo devices, an error is thrown.

image Eventually, it goes back to "normal" translating just the Wemo devices. image

I looked back further through the logs and I saw the following: image

It looks like there might be an unhandled Promise causing this based on the logs. I can look into it further when I have more time. I just wanted to put this out there to see if anyone else has run into this issue after the upgrade as well.

che-wf commented 5 years ago

Fixed with #5