bropat / ioBroker.eusec

This ioBroker adapter allows to control Eufy security devices by connecting to the Eufy cloud servers.
MIT License
139 stars 17 forks source link

[Bug]: Non-parsable parameter value received from eufy cloud #381

Closed Lordbooker closed 1 year ago

Lordbooker commented 1 year ago

Adapter version

1.1.2

JS-Controller version

5.0.12

Node version

18.17.1

Operating System type

Docker

Operating system version

???

Describe the bug

JSON parse error [{"error":{"message":"SyntaxError: Unexpected end of JSON input","stacktrace":"SyntaxError: Unexpected end of JSON input\n at JSON.parse ()\n at parseJSON (/opt/iobroker/node_modules/eufy-security-client/build/utils.js:154:21)\n at ParameterHelper.readValue (/opt/iobroker/node_modules/eufy-security-client/build/http/parameter.js:50:63)\n at Camera.updateRawProperty (/opt/iobroker/node_modules/eufy-security-client/build/http/device.js:127:57)\n at /opt/iobroker/node_modules/eufy-security-client/build/http/device.js:54:22\n at Array.forEach ()\n at Camera.update (/opt/iobroker/node_modules/eufy-security-client/build/http/device.js:53:35)\n at EufySecurity.updateDevice (/opt/iobroker/node_modules/eufy-security-client/build/eufysecurity.js:344:44)\n at EufySecurity.handleDevices (/opt/iobroker/node_modules/eufy-security-client/build/eufysecurity.js:560:22)\n at HTTPApi. (/opt/iobroker/node_modules/eufy-security-client/build/eufysecurity.js:167:50)"},"data":"{\"r"}]

To reproduce

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '....'
  4. See error

Screenshots & Logfiles

No response

Additional context

No response

firebowl commented 1 year ago

Same problem here. It is flooding my ioBroker log.

bropat commented 1 year ago

Duplicate of #374