treban / pimatic-tradfri

This plugin provides a tradfri interface for pimatic.
https://pimatic.org/plugins/pimatic-tradfri/
GNU General Public License v2.0
11 stars 3 forks source link

error after update to [tradfri 0.1.13] #15

Closed cm86 closed 7 years ago

cm86 commented 7 years ago

Hello, after i update the plugin to version 0.1.13 i get the error every minute

error [pimatic]: An uncaught exception occurred: SyntaxError: Unexpected end of input at Object.parse (native) at OutgoingMessage.<anonymous> (/home/cm/pimatic-app/node_modules/pimatic-tradfri/node_modules/tradfri-coapdtls/tradfri-coapdtls.js:340:37) at emitOne (events.js:82:20) at OutgoingMessage.emit (events.js:169:7) at Agent.handle [as _handle] (/home/cm/pimatic-app/node_modules/pimatic-tradfri/node_modules/tradfri-coapdtls/lib/agent.js:326:7) at DtlsClientSocket.<anonymous> (/home/cm/pimatic-app/node_modules/pimatic-tradfri/node_modules/tradfri-coapdtls/lib/agent.js:95:14) at emitOne (events.js:77:13) at DtlsClientSocket.emit (events.js:169:7) at readableAddChunk (_stream_readable.js:153:18) at DtlsClientSocket.Readable.push (_stream_readable.js:111:10) at DtlsClientSocket._onMessage (/home/cm/pimatic-app/node_modules/pimatic-tradfri/node_modules/tradfri-coapdtls/node_modules/node-mbed-dtls/client_socket.js:89:12) at emitTwo (events.js:87:13) at Socket.emit (events.js:172:7) at UDP.onMessage (dgram.js:480:8) This is most probably a bug in pimatic or in a module, please report it!

treban commented 7 years ago

i'm working on it. Update will come soon

treban commented 7 years ago

see here ... https://github.com/treban/pimatic-tradfri/issues/14