Newan / ioBroker.easee

easee is a wallbox with an REST-API. This adapter for ioBroker can used to connect the wallbox with your home environment
MIT License
21 stars 8 forks source link

Adapter restarting due to uncaught exception #6

Closed souhl closed 3 years ago

souhl commented 3 years ago

Adapter cannot start cause of an uncaught exception.

host.iobroker 2021-04-25 19:20:36.740 warn Do not restart adapter system.adapter.easee.0 because restart loop detected
host.iobroker 2021-04-25 19:20:36.740 info Restart adapter system.adapter.easee.0 because enabled
host.iobroker 2021-04-25 19:20:36.739 error instance system.adapter.easee.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
easee.0 2021-04-25 19:20:36.144 warn (4052739) Terminated (UNCAUGHT_EXCEPTION): Without reason
easee.0 2021-04-25 19:20:36.143 info (4052739) terminating
easee.0 2021-04-25 19:20:36.143 info (4052739) Adaptor easee cleaned up everything...
easee.0 2021-04-25 19:20:36.133 error (4052739) Request failed with status code 400
easee.0 2021-04-25 19:20:36.133 error at processTicksAndRejections (internal/process/task_queues.js:84:21)
easee.0 2021-04-25 19:20:36.133 error at endReadableNT (_stream_readable.js:1241:12)
easee.0 2021-04-25 19:20:36.133 error at IncomingMessage.emit (events.js:326:22)
easee.0 2021-04-25 19:20:36.133 error at IncomingMessage.handleStreamEnd (/opt/iobroker/node_modules/axios/lib/adapters/http.js:260:11)
easee.0 2021-04-25 19:20:36.133 error at settle (/opt/iobroker/node_modules/axios/lib/core/settle.js:17:12)
easee.0 2021-04-25 19:20:36.133 error at createError (/opt/iobroker/node_modules/axios/lib/core/createError.js:16:15)
easee.0 2021-04-25 19:20:36.133 error (4052739) Error: Request failed with status code 400
easee.0 2021-04-25 19:20:36.132 error (4052739) unhandled promise rejection: Request failed with status code 400
easee.0 2021-04-25 19:20:36.132 error (4052739) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().

Versions:

souhl commented 3 years ago

It was a changed password.. Would be great to add some error handling when password was changed.

Newan commented 3 years ago

Please check new Version