-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adapter terminating with uncaught exception #88
Comments
@ExecuteGK thank you for the bug report. |
Hi, the version is 1.0.1. |
Okay @ExecuteGK , |
On my instance, it was: e3dc-rscp.0.EMS.MAX_DISCHARGE_POWER It should be an easy fix. Default value could be 0 in case a negative value is dropped in here. Regards, Sebastian |
Will be fixed in v1.0.3 Like suggested above, out-of-range values are silently replaced by 0 (or "" in case of strings). |
Adapter terminates with the following log entry:
RangeError [ERR_OUT_OF_RANGE]: The value of "value" is out of range. It must be >= 0 and <= 4294967295. Received -4034 at checkInt (internal/buffer.js:63:11) at writeU_Int32LE (internal/buffer.js:683:3) at Buffer.writeUInt32LE (internal/buffer.js:696:10) at E3dcRscp.addTagtoFrame (/opt/iobroker/node_modules/iobroker.e3dc-rscp/main.js:585:11) at E3dcRscp.queueSetValue (/opt/iobroker/node_modules/iobroker.e3dc-rscp/main.js:917:9) at E3dcRscp.onStateChange (/opt/iobroker/node_modules/iobroker.e3dc-rscp/main.js:1749:11) at E3dcRscp.emit (events.js:310:20) at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:5379:53) at processImmediate (internal/timers.js:456:21)
Proper error handling should be introduced in order to ignore illegal values and keep the adapter running.
Regards,
Sebastian
The text was updated successfully, but these errors were encountered: