DrozmotiX / ioBroker.discovergy

Receive all data of Discovery API into ioBroker to have your energy consumption and delivery monitored
MIT License
14 stars 7 forks source link

unhandled promise rejection: Unexpected end of JSON input #228

Closed TPPLordt closed 2 years ago

TPPLordt commented 2 years ago

Hi,

I got the same error, the adapter don´t work. can somebody help?

discovergy version: 0.5.8 Plattform Raspberry pi 4 4GB

discovergy.0 | 4290 | 2022-07-24 11:41:55.305 | error | Unexpected end of JSON input -- | -- | -- | -- | -- discovergy.0 | 4290 | 2022-07-24 11:41:55.304 | error | SyntaxError: Unexpected end of JSON input at JSON.parse () at Request._rp_callbackOrig (/opt/iobroker/node_modules/iobroker.discovergy/main.js:154:24) at Request.plumbing.callback (/opt/iobroker/node_modules/request-promise-core/lib/plumbing.js:76:39) at Request.RP$callback [as _callback] (/opt/iobroker/node_modules/request-promise-core/lib/plumbing.js:46:31) at Request.self.callback (/opt/iobroker/node_modules/request/request.js:185:22) at Request.emit (events.js:400:28) at Request.emit (domain.js:475:12) at Request. (/opt/iobroker/node_modules/request/request.js:1154:10) at Request.emit (events.js:400:28) at Request.emit (domain.js:475:12) discovergy.0 | 4290 | 2022-07-24 11:41:55.293 | error | unhandled promise rejection: Unexpected end of JSON input discovergy.0 | 4290 | 2022-07-24 11:41:55.292 | error | 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(). discovergy.0 | 4290 | 2022-07-24 11:41:55.232 | info | All meters associated to your account discovered, initialise meters discovergy.0 | 4290 | 2022-07-24 11:41:54.867 | error | State type : printedFullSerialNumber unknown, send this information to the developer ==> printedFullSerialNumber : "1ESYxxxxxxxxxx" discovergy.0 | 4290 | 2022-07-24 11:41:54.532 | error | State type : printedFullSerialNumber unknown, send this information to the developer ==> printedFullSerialNumber : "60xxxxxx_GENERATOR"

Originally posted by @TPPLordt in https://github.com/DrozmotiX/ioBroker.discovergy/issues/224#issuecomment-1193284689

TPPLordt commented 2 years ago

Here ist a debug log

discovergy.0 | 1171 | 2022-07-25 20:49:15.801 | info | All meters initialized, polling data every 30 seconds -- | -- | -- | -- | -- discovergy.0 | 1171 | 2022-07-25 20:49:15.758 | warn | Terminated (UNCAUGHT_EXCEPTION): Without reason discovergy.0 | 1171 | 2022-07-25 20:49:15.756 | debug | Plugin sentry destroyed discovergy.0 | 1171 | 2022-07-25 20:49:15.753 | info | terminating discovergy.0 | 1171 | 2022-07-25 20:49:15.752 | info | cleaned everything up... discovergy.0 | 1171 | 2022-07-25 20:49:15.711 | error | Unexpected end of JSON input discovergy.0 | 1171 | 2022-07-25 20:49:15.710 | error | SyntaxError: Unexpected end of JSON input at JSON.parse () at Request._rp_callbackOrig (/opt/iobroker/node_modules/iobroker.discovergy/main.js:154:24) at Request.plumbing.callback (/opt/iobroker/node_modules/request-promise-core/lib/plumbing.js:76:39) at Request.RP$callback [as _callback] (/opt/iobroker/node_modules/request-promise-core/lib/plumbing.js:46:31) at Request.self.callback (/opt/iobroker/node_modules/request/request.js:185:22) at Request.emit (events.js:400:28) at Request.emit (domain.js:475:12) at Request. (/opt/iobroker/node_modules/request/request.js:1154:10) at Request.emit (events.js:400:28) at Request.emit (domain.js:475:12) discovergy.0 | 1171 | 2022-07-25 20:49:15.699 | error | unhandled promise rejection: Unexpected end of JSON input discovergy.0 | 1171 | 2022-07-25 20:49:15.698 | error | 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(). discovergy.0 | 1171 | 2022-07-25 20:49:15.634 | debug | All meters : {"19685574668445fabxxxxxxxxxxxxxxx":{"meterId":"19685574668445fabxxxxxxxxxxxxxxx","manufacturerId":"GENERIC","serialNumber":"604xxxxx_GENERATOR","fullSerialNumber":"","printedFullSerialNumber":"604xxxxx_GENERATOR","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"","type":"GENERIC","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":-1,"lastMeasurementTime":-1},"5144ecccaddd4619970e4a261f1bed90":{"meterId":"5144ecccaddd4619970e4a261f1bed90","manufacturerId":"ESY","serialNumber":"604xxxxx","fullSerialNumber":"1ESY11604xxxxx","printedFullSerialNumber":"1ESY11604xxxxx","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"DE0004961234500000000000xxxxxxxxx","type":"ESY","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":1474271098757,"lastMeasurementTime":1658774954427}} discovergy.0 | 1171 | 2022-07-25 20:49:15.633 | info | All meters associated to your account discovered, initialise meters discovergy.0 | 1171 | 2022-07-25 20:49:15.433 | error | State type : printedFullSerialNumber unknown, send this information to the developer ==> printedFullSerialNumber : "1ESY11604xxxxx" discovergy.0 | 1171 | 2022-07-25 20:49:15.353 | debug | {"meterId":"5144ecccaddd4619970e4a261f1bed90","manufacturerId":"ESY","serialNumber":"604xxxxx","fullSerialNumber":"1ESY11604xxxxx","printedFullSerialNumber":"1ESY11604xxxxx","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"DE0004961234500000000000xxxxxxxxx","type":"ESY","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":1474271098757,"lastMeasurementTime":1658774954427} discovergy.0 | 1171 | 2022-07-25 20:49:15.118 | error | State type : printedFullSerialNumber unknown, send this information to the developer ==> printedFullSerialNumber : "604xxxxx_GENERATOR" discovergy.0 | 1171 | 2022-07-25 20:49:15.072 | debug | {"meterId":"19685574668445fabxxxxxxxxxxxxxxx","manufacturerId":"GENERIC","serialNumber":"604xxxxx_GENERATOR","fullSerialNumber":"","printedFullSerialNumber":"604xxxxx_GENERATOR","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"","type":"GENERIC","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":-1,"lastMeasurementTime":-1} discovergy.0 | 1171 | 2022-07-25 20:49:15.070 | debug | [{"meterId":"19685574668445fabxxxxxxxxxxxxxxx","manufacturerId":"GENERIC","serialNumber":"604xxxxx_GENERATOR","fullSerialNumber":"","printedFullSerialNumber":"604xxxxx_GENERATOR","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"","type":"GENERIC","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":-1,"lastMeasurementTime":-1},{"meterId":"5144ecccaddd4619970e4a261f1bed90","manufacturerId":"ESY","serialNumber":"604xxxxx","fullSerialNumber":"1ESY11604xxxxx","printedFullSerialNumber":"1ESY11604xxxxx","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"DE0004961234500000000000xxxxxxxxx","type":"ESY","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":1474271098757,"lastMeasurementTime":1658774954427}] discovergy.0 | 1171 | 2022-07-25 20:49:14.937 | info | Discovergy Adapter startet, trying to discover meters associated with your account discovergy.0 | 1171 | 2022-07-25 20:49:14.822 | debug | Schedule restart: * * * * * discovergy.0 | 1171 | 2022-07-25 20:49:14.729 | info | starting. Version 0.5.8 in /opt/iobroker/node_modules/iobroker.discovergy, node: v14.20.0, js-controller: 4.0.23 discovergy.0 | 1171 | 2022-07-25 20:49:14.321 | debug | Plugin sentry Initialize Plugin (enabled=true) discovergy.0 | 1155 | 2022-07-25 20:49:10.544 | info | All meters initialized, polling data every 30 seconds discovergy.0 | 1155 | 2022-07-25 20:49:10.496 | warn | Terminated (UNCAUGHT_EXCEPTION): Without reason discovergy.0 | 1155 | 2022-07-25 20:49:10.495 | debug | Plugin sentry destroyed discovergy.0 | 1155 | 2022-07-25 20:49:10.494 | info | terminating discovergy.0 | 1155 | 2022-07-25 20:49:10.493 | info | cleaned everything up... discovergy.0 | 1155 | 2022-07-25 20:49:10.464 | error | Unexpected end of JSON input discovergy.0 | 1155 | 2022-07-25 20:49:10.463 | error | SyntaxError: Unexpected end of JSON input at JSON.parse () at Request._rp_callbackOrig (/opt/iobroker/node_modules/iobroker.discovergy/main.js:154:24) at Request.plumbing.callback (/opt/iobroker/node_modules/request-promise-core/lib/plumbing.js:76:39) at Request.RP$callback [as _callback] (/opt/iobroker/node_modules/request-promise-core/lib/plumbing.js:46:31) at Request.self.callback (/opt/iobroker/node_modules/request/request.js:185:22) at Request.emit (events.js:400:28) at Request.emit (domain.js:475:12) at Request. (/opt/iobroker/node_modules/request/request.js:1154:10) at Request.emit (events.js:400:28) at Request.emit (domain.js:475:12) discovergy.0 | 1155 | 2022-07-25 20:49:10.450 | error | unhandled promise rejection: Unexpected end of JSON input discovergy.0 | 1155 | 2022-07-25 20:49:10.449 | error | 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(). discovergy.0 | 1155 | 2022-07-25 20:49:10.394 | debug | All meters : {"19685574668445fabxxxxxxxxxxxxxxx":{"meterId":"19685574668445fabxxxxxxxxxxxxxxx","manufacturerId":"GENERIC","serialNumber":"604xxxxx_GENERATOR","fullSerialNumber":"","printedFullSerialNumber":"604xxxxx_GENERATOR","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"","type":"GENERIC","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":-1,"lastMeasurementTime":-1},"5144ecccaddd4619970e4a261f1bed90":{"meterId":"5144ecccaddd4619970e4a261f1bed90","manufacturerId":"ESY","serialNumber":"604xxxxx","fullSerialNumber":"1ESY11604xxxxx","printedFullSerialNumber":"1ESY11604xxxxx","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"DE0004961234500000000000xxxxxxxxx","type":"ESY","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":1474271098757,"lastMeasurementTime":1658774948428}} discovergy.0 | 1155 | 2022-07-25 20:49:10.393 | info | All meters associated to your account discovered, initialise meters discovergy.0 | 1155 | 2022-07-25 20:49:10.124 | error | State type : printedFullSerialNumber unknown, send this information to the developer ==> printedFullSerialNumber : "1ESY11604xxxxx" discovergy.0 | 1155 | 2022-07-25 20:49:10.034 | debug | {"meterId":"5144ecccaddd4619970e4a261f1bed90","manufacturerId":"ESY","serialNumber":"604xxxxx","fullSerialNumber":"1ESY11604xxxxx","printedFullSerialNumber":"1ESY11604xxxxx","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"DE0004961234500000000000xxxxxxxxx","type":"ESY","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":1474271098757,"lastMeasurementTime":1658774948428} discovergy.0 | 1155 | 2022-07-25 20:49:09.838 | error | State type : printedFullSerialNumber unknown, send this information to the developer ==> printedFullSerialNumber : "604xxxxx_GENERATOR" discovergy.0 | 1155 | 2022-07-25 20:49:09.779 | debug | {"meterId":"19685574668445fabxxxxxxxxxxxxxxx","manufacturerId":"GENERIC","serialNumber":"604xxxxx_GENERATOR","fullSerialNumber":"","printedFullSerialNumber":"604xxxxx_GENERATOR","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"","type":"GENERIC","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":-1,"lastMeasurementTime":-1} discovergy.0 | 1155 | 2022-07-25 20:49:09.778 | debug | [{"meterId":"19685574668445fabxxxxxxxxxxxxxxx","manufacturerId":"GENERIC","serialNumber":"604xxxxx_GENERATOR","fullSerialNumber":"","printedFullSerialNumber":"604xxxxx_GENERATOR","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"","type":"GENERIC","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":-1,"lastMeasurementTime":-1},{"meterId":"5144ecccaddd4619970e4a261f1bed90","manufacturerId":"ESY","serialNumber":"604xxxxx","fullSerialNumber":"1ESY11604xxxxx","printedFullSerialNumber":"1ESY11604xxxxx","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"DE0004961234500000000000xxxxxxxxx","type":"ESY","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":1474271098757,"lastMeasurementTime":1658774948428}] discovergy.0 | 1155 | 2022-07-25 20:49:09.639 | info | Discovergy Adapter startet, trying to discover meters associated with your account discovergy.0 | 1155 | 2022-07-25 20:49:09.523 | debug | Schedule restart: * * * * * discovergy.0 | 1155 | 2022-07-25 20:49:09.430 | info | starting. Version 0.5.8 in /opt/iobroker/node_modules/iobroker.discovergy, node: v14.20.0, js-controller: 4.0.23 discovergy.0 | 1155 | 2022-07-25 20:49:08.992 | debug | Plugin sentry Initialize Plugin (enabled=true) discovergy.0 | 1129 | 2022-07-25 20:49:05.392 | info | All meters initialized, polling data every 30 seconds discovergy.0 | 1129 | 2022-07-25 20:49:05.345 | warn | Terminated (UNCAUGHT_EXCEPTION): Without reason discovergy.0 | 1129 | 2022-07-25 20:49:05.343 | debug | Plugin sentry destroyed discovergy.0 | 1129 | 2022-07-25 20:49:05.341 | info | terminating discovergy.0 | 1129 | 2022-07-25 20:49:05.340 | info | cleaned everything up... discovergy.0 | 1129 | 2022-07-25 20:49:05.304 | error | Unexpected end of JSON input discovergy.0 | 1129 | 2022-07-25 20:49:05.303 | error | SyntaxError: Unexpected end of JSON input at JSON.parse () at Request._rp_callbackOrig (/opt/iobroker/node_modules/iobroker.discovergy/main.js:154:24) at Request.plumbing.callback (/opt/iobroker/node_modules/request-promise-core/lib/plumbing.js:76:39) at Request.RP$callback [as _callback] (/opt/iobroker/node_modules/request-promise-core/lib/plumbing.js:46:31) at Request.self.callback (/opt/iobroker/node_modules/request/request.js:185:22) at Request.emit (events.js:400:28) at Request.emit (domain.js:475:12) at Request. (/opt/iobroker/node_modules/request/request.js:1154:10) at Request.emit (events.js:400:28) at Request.emit (domain.js:475:12) discovergy.0 | 1129 | 2022-07-25 20:49:05.292 | error | unhandled promise rejection: Unexpected end of JSON input discovergy.0 | 1129 | 2022-07-25 20:49:05.291 | error | 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(). discovergy.0 | 1129 | 2022-07-25 20:49:05.236 | debug | All meters : {"19685574668445fabxxxxxxxxxxxxxxx":{"meterId":"19685574668445fabxxxxxxxxxxxxxxx","manufacturerId":"GENERIC","serialNumber":"604xxxxx_GENERATOR","fullSerialNumber":"","printedFullSerialNumber":"604xxxxx_GENERATOR","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"","type":"GENERIC","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":-1,"lastMeasurementTime":-1},"5144ecccaddd4619970e4a261f1bed90":{"meterId":"5144ecccaddd4619970e4a261f1bed90","manufacturerId":"ESY","serialNumber":"604xxxxx","fullSerialNumber":"1ESY11604xxxxx","printedFullSerialNumber":"1ESY11604xxxxx","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"DE0004961234500000000000xxxxxxxxx","type":"ESY","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":1474271098757,"lastMeasurementTime":1658774942428}} discovergy.0 | 1129 | 2022-07-25 20:49:05.235 | info | All meters associated to your account discovered, initialise meters discovergy.0 | 1129 | 2022-07-25 20:49:04.963 | error | State type : printedFullSerialNumber unknown, send this information to the developer ==> printedFullSerialNumber : "1ESY11604xxxxx" discovergy.0 | 1129 | 2022-07-25 20:49:04.791 | debug | {"meterId":"5144ecccaddd4619970e4a261f1bed90","manufacturerId":"ESY","serialNumber":"604xxxxx","fullSerialNumber":"1ESY11604xxxxx","printedFullSerialNumber":"1ESY11604xxxxx","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"DE0004961234500000000000xxxxxxxxx","type":"ESY","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":1474271098757,"lastMeasurementTime":1658774942428} discovergy.0 | 1129 | 2022-07-25 20:49:04.542 | error | State type : printedFullSerialNumber unknown, send this information to the developer ==> printedFullSerialNumber : "604xxxxx_GENERATOR" discovergy.0 | 1129 | 2022-07-25 20:49:04.489 | debug | {"meterId":"19685574668445fabxxxxxxxxxxxxxxx","manufacturerId":"GENERIC","serialNumber":"604xxxxx_GENERATOR","fullSerialNumber":"","printedFullSerialNumber":"604xxxxx_GENERATOR","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"","type":"GENERIC","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":-1,"lastMeasurementTime":-1} discovergy.0 | 1129 | 2022-07-25 20:49:04.489 | debug | [{"meterId":"19685574668445fabxxxxxxxxxxxxxxx","manufacturerId":"GENERIC","serialNumber":"604xxxxx_GENERATOR","fullSerialNumber":"","printedFullSerialNumber":"604xxxxx_GENERATOR","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"","type":"GENERIC","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":-1,"lastMeasurementTime":-1},{"meterId":"5144ecccaddd4619970e4a261f1bed90","manufacturerId":"ESY","serialNumber":"604xxxxx","fullSerialNumber":"1ESY11604xxxxx","printedFullSerialNumber":"1ESY11604xxxxx","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"DE0004961234500000000000xxxxxxxxx","type":"ESY","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":1474271098757,"lastMeasurementTime":1658774942428}] discovergy.0 | 1129 | 2022-07-25 20:49:04.358 | info | Discovergy Adapter startet, trying to discover meters associated with your account discovergy.0 | 1129 | 2022-07-25 20:49:04.236 | debug | Schedule restart: * * * * * discovergy.0 | 1129 | 2022-07-25 20:49:04.143 | info | starting. Version 0.5.8 in /opt/iobroker/node_modules/iobroker.discovergy, node: v14.20.0, js-controller: 4.0.23 discovergy.0 | 1129 | 2022-07-25 20:49:03.747 | debug | Plugin sentry Initialize Plugin (enabled=true) discovergy.0 | 1105 | 2022-07-25 20:49:00.584 | error | DB closed discovergy.0 | 1105 | 2022-07-25 20:49:00.584 | error | Error: DB closed at close (/opt/iobroker/node_modules/ioredis/built/redis/event_handler.js:184:25) at Socket. (/opt/iobroker/node_modules/ioredis/built/redis/event_handler.js:151:20) at Object.onceWrapper (events.js:520:26) at Socket.emit (events.js:400:28) at Socket.emit (domain.js:475:12) at TCP. (net.js:686:12) discovergy.0 | 1105 | 2022-07-25 20:49:00.577 | error | unhandled promise rejection: DB closed discovergy.0 | 1105 | 2022-07-25 20:49:00.576 | error | 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(). discovergy.0 | 1105 | 2022-07-25 20:49:00.485 | error | State type : printedFullSerialNumber unknown, send this information to the developer ==> printedFullSerialNumber : "1ESY11604xxxxx" discovergy.0 | 1105 | 2022-07-25 20:49:00.392 | debug | {"meterId":"5144ecccaddd4619970e4a261f1bed90","manufacturerId":"ESY","serialNumber":"604xxxxx","fullSerialNumber":"1ESY11604xxxxx","printedFullSerialNumber":"1ESY11604xxxxx","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"DE0004961234500000000000xxxxxxxxx","type":"ESY","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":1474271098757,"lastMeasurementTime":1658774938428} discovergy.0 | 1105 | 2022-07-25 20:49:00.144 | error | State type : printedFullSerialNumber unknown, send this information to the developer ==> printedFullSerialNumber : "604xxxxx_GENERATOR" discovergy.0 | 1105 | 2022-07-25 20:49:00.056 | info | Terminated (START_IMMEDIATELY_AFTER_STOP): Without reason discovergy.0 | 1105 | 2022-07-25 20:49:00.054 | debug | Plugin sentry destroyed discovergy.0 | 1105 | 2022-07-25 20:49:00.051 | info | terminating discovergy.0 | 1105 | 2022-07-25 20:49:00.036 | debug | {"meterId":"19685574668445fabxxxxxxxxxxxxxxx","manufacturerId":"GENERIC","serialNumber":"604xxxxx_GENERATOR","fullSerialNumber":"","printedFullSerialNumber":"604xxxxx_GENERATOR","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"","type":"GENERIC","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":-1,"lastMeasurementTime":-1} discovergy.0 | 1105 | 2022-07-25 20:49:00.035 | debug | [{"meterId":"19685574668445fabxxxxxxxxxxxxxxx","manufacturerId":"GENERIC","serialNumber":"604xxxxx_GENERATOR","fullSerialNumber":"","printedFullSerialNumber":"604xxxxx_GENERATOR","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"","type":"GENERIC","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":-1,"lastMeasurementTime":-1},{"meterId":"5144ecccaddd4619970e4a261f1bed90","manufacturerId":"ESY","serialNumber":"604xxxxx","fullSerialNumber":"1ESY11604xxxxx","printedFullSerialNumber":"1ESY11604xxxxx","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"DE0004961234500000000000xxxxxxxxx","type":"ESY","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":1474271098757,"lastMeasurementTime":1658774938428}] discovergy.0 | 1105 | 2022-07-25 20:49:00.027 | info | cleaned everything up... discovergy.0 | 1105 | 2022-07-25 20:49:00.026 | info | Scheduled restart. discovergy.0 | 1105 | 2022-07-25 20:48:59.860 | info | Discovergy Adapter startet, trying to discover meters associated with your account discovergy.0 | 1105 | 2022-07-25 20:48:59.748 | debug | Schedule restart: * * * * * discovergy.0 | 1105 | 2022-07-25 20:48:59.652 | info | starting. Version 0.5.8 in /opt/iobroker/node_modules/iobroker.discovergy, node: v14.20.0, js-controller: 4.0.23 discovergy.0 | 1105 | 2022-07-25 20:48:59.102 | debug | Plugin sentry Initialize Plugin (enabled=true) discovergy.0 | 1105 | 2022-07-25 20:48:59.003 | debug | States connected to redis: 127.0.0.1:9000 discovergy.0 | 1105 | 2022-07-25 20:48:58.971 | debug | States create User PubSub Client discovergy.0 | 1105 | 2022-07-25 20:48:58.969 | debug | States create System PubSub Client discovergy.0 | 1105 | 2022-07-25 20:48:58.949 | debug | Redis States: Use Redis connection: 127.0.0.1:9000 discovergy.0 | 1105 | 2022-07-25 20:48:58.912 | debug | Objects connected to redis: 127.0.0.1:9001 discovergy.0 | 1105 | 2022-07-25 20:48:58.904 | debug | Objects client initialize lua scripts discovergy.0 | 1105 | 2022-07-25 20:48:58.844 | debug | Objects create User PubSub Client discovergy.0 | 1105 | 2022-07-25 20:48:58.843 | debug | Objects create System PubSub Client discovergy.0 | 1105 | 2022-07-25 20:48:58.809 | debug | Objects client ready ... initialize now discovergy.0 | 1105 | 2022-07-25 20:48:58.735 | debug | Redis Objects: Use Redis connection: 127.0.0.1:9001 discovergy.0 | 23673 | 2022-07-25 08:17:21.273 | error | Unexpected end of JSON input discovergy.0 | 23673 | 2022-07-25 08:17:21.272 | error | SyntaxError: Unexpected end of JSON input at JSON.parse () at Request._rp_callbackOrig (/opt/iobroker/node_modules/iobroker.discovergy/main.js:154:24) at Request.plumbing.callback (/opt/iobroker/node_modules/request-promise-core/lib/plumbing.js:76:39) at Request.RP$callback [as _callback] (/opt/iobroker/node_modules/request-promise-core/lib/plumbing.js:46:31) at Request.self.callback (/opt/iobroker/node_modules/request/request.js:185:22) at Request.emit (events.js:400:28) at Request.emit (domain.js:475:12) at Request. (/opt/iobroker/node_modules/request/request.js:1154:10) at Request.emit (events.js:400:28) at Request.emit (domain.js:475:12) discovergy.0 | 23673 | 2022-07-25 08:17:21.264 | error | unhandled promise rejection: Unexpected end of JSON input discovergy.0 | 23673 | 2022-07-25 08:17:21.263 | error | 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(). discovergy.0 | 23673 | 2022-07-25 08:17:21.207 | debug | All meters : {"19685574668445fabxxxxxxxxxxxxxxx":{"meterId":"19685574668445fabxxxxxxxxxxxxxxx","manufacturerId":"GENERIC","serialNumber":"604xxxxx_GENERATOR","fullSerialNumber":"","printedFullSerialNumber":"604xxxxx_GENERATOR","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"","type":"GENERIC","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":-1,"lastMeasurementTime":-1},"5144ecccaddd4619970e4a261f1bed90":{"meterId":"5144ecccaddd4619970e4a261f1bed90","manufacturerId":"ESY","serialNumber":"604xxxxx","fullSerialNumber":"1ESY11604xxxxx","printedFullSerialNumber":"1ESY11604xxxxx","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"DE0004961234500000000000xxxxxxxxx","type":"ESY","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":1474271098757,"lastMeasurementTime":1658729839207}} discovergy.0 | 23673 | 2022-07-25 08:17:21.206 | info | All meters associated to your account discovered, initialise meters discovergy.0 | 23673 | 2022-07-25 08:17:20.965 | error | State type : printedFullSerialNumber unknown, send this information to the developer ==> printedFullSerialNumber : "1ESY11604xxxxx" discovergy.0 | 23673 | 2022-07-25 08:17:20.877 | debug | {"meterId":"5144ecccaddd4619970e4a261f1bed90","manufacturerId":"ESY","serialNumber":"604xxxxx","fullSerialNumber":"1ESY11604xxxxx","printedFullSerialNumber":"1ESY11604xxxxx","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"DE0004961234500000000000xxxxxxxxx","type":"ESY","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":1474271098757,"lastMeasurementTime":1658729839207} discovergy.0 | 23673 | 2022-07-25 08:17:20.801 | info | Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason discovergy.0 | 23673 | 2022-07-25 08:17:20.799 | debug | Plugin sentry destroyed discovergy.0 | 23673 | 2022-07-25 08:17:20.796 | info | terminating discovergy.0 | 23673 | 2022-07-25 08:17:20.795 | info | cleaned everything up... discovergy.0 | 23673 | 2022-07-25 08:17:20.793 | info | Got terminate signal TERMINATE_YOURSELF discovergy.0 | 23673 | 2022-07-25 08:17:20.605 | error | State type : printedFullSerialNumber unknown, send this information to the developer ==> printedFullSerialNumber : "604xxxxx_GENERATOR" discovergy.0 | 23673 | 2022-07-25 08:17:20.559 | debug | {"meterId":"19685574668445fabxxxxxxxxxxxxxxx","manufacturerId":"GENERIC","serialNumber":"604xxxxx_GENERATOR","fullSerialNumber":"","printedFullSerialNumber":"604xxxxx_GENERATOR","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"","type":"GENERIC","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":-1,"lastMeasurementTime":-1} discovergy.0 | 23673 | 2022-07-25 08:17:20.558 | debug | [{"meterId":"19685574668445fabxxxxxxxxxxxxxxx","manufacturerId":"GENERIC","serialNumber":"604xxxxx_GENERATOR","fullSerialNumber":"","printedFullSerialNumber":"604xxxxx_GENERATOR","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"","type":"GENERIC","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":-1,"lastMeasurementTime":-1},{"meterId":"5144ecccaddd4619970e4a261f1bed90","manufacturerId":"ESY","serialNumber":"604xxxxx","fullSerialNumber":"1ESY11604xxxxx","printedFullSerialNumber":"1ESY11604xxxxx","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"DE0004961234500000000000xxxxxxxxx","type":"ESY","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":1474271098757,"lastMeasurementTime":1658729839207}] discovergy.0 | 23673 | 2022-07-25 08:17:20.396 | info | Discovergy Adapter startet, trying to discover meters associated with your account discovergy.0 | 23673 | 2022-07-25 08:17:20.281 | debug | Schedule restart: * * * * * discovergy.0 | 23673 | 2022-07-25 08:17:20.186 | info | starting. Version 0.5.8 in /opt/iobroker/node_modules/iobroker.discovergy, node: v14.20.0, js-controller: 4.0.23 discovergy.0 | 23673 | 2022-07-25 08:17:19.795 | debug | Plugin sentry Initialize Plugin (enabled=true) discovergy.0 | 23673 | 2022-07-25 08:17:19.705 | debug | States connected to redis: 127.0.0.1:9000 discovergy.0 | 23673 | 2022-07-25 08:17:19.674 | debug | States create User PubSub Client discovergy.0 | 23673 | 2022-07-25 08:17:19.672 | debug | States create System PubSub Client discovergy.0 | 23673 | 2022-07-25 08:17:19.654 | debug | Redis States: Use Redis connection: 127.0.0.1:9000 discovergy.0 | 23673 | 2022-07-25 08:17:19.617 | debug | Objects connected to redis: 127.0.0.1:9001 discovergy.0 | 23673 | 2022-07-25 08:17:19.610 | debug | Objects client initialize lua scripts discovergy.0 | 23673 | 2022-07-25 08:17:19.553 | debug | Objects create User PubSub Client discovergy.0 | 23673 | 2022-07-25 08:17:19.551 | debug | Objects create System PubSub Client discovergy.0 | 23673 | 2022-07-25 08:17:19.549 | debug | Objects client ready ... initialize now discovergy.0 | 23673 | 2022-07-25 08:17:19.485 | debug | Redis Objects: Use Redis connection: 127.0.0.1:9001 discovergy.0 | 23628 | 2022-07-25 08:15:09.672 | info | All meters initialized, polling data every 3600 seconds discovergy.0 | 23628 | 2022-07-25 08:15:09.614 | warn | Terminated (UNCAUGHT_EXCEPTION): Without reason discovergy.0 | 23628 | 2022-07-25 08:15:09.612 | debug | Plugin sentry destroyed discovergy.0 | 23628 | 2022-07-25 08:15:09.610 | info | terminating discovergy.0 | 23628 | 2022-07-25 08:15:09.609 | info | cleaned everything up... discovergy.0 | 23628 | 2022-07-25 08:15:09.565 | error | Unexpected end of JSON input discovergy.0 | 23628 | 2022-07-25 08:15:09.564 | error | SyntaxError: Unexpected end of JSON input at JSON.parse () at Request._rp_callbackOrig (/opt/iobroker/node_modules/iobroker.discovergy/main.js:154:24) at Request.plumbing.callback (/opt/iobroker/node_modules/request-promise-core/lib/plumbing.js:76:39) at Request.RP$callback [as _callback] (/opt/iobroker/node_modules/request-promise-core/lib/plumbing.js:46:31) at Request.self.callback (/opt/iobroker/node_modules/request/request.js:185:22) at Request.emit (events.js:400:28) at Request.emit (domain.js:475:12) at Request. (/opt/iobroker/node_modules/request/request.js:1154:10) at Request.emit (events.js:400:28) at Request.emit (domain.js:475:12) discovergy.0 | 23628 | 2022-07-25 08:15:09.554 | error | unhandled promise rejection: Unexpected end of JSON input discovergy.0 | 23628 | 2022-07-25 08:15:09.553 | error | 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(). discovergy.0 | 23628 | 2022-07-25 08:15:09.494 | debug | All meters : {"19685574668445fabxxxxxxxxxxxxxxx":{"meterId":"19685574668445fabxxxxxxxxxxxxxxx","manufacturerId":"GENERIC","serialNumber":"604xxxxx_GENERATOR","fullSerialNumber":"","printedFullSerialNumber":"604xxxxx_GENERATOR","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"","type":"GENERIC","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":-1,"lastMeasurementTime":-1},"5144ecccaddd4619970e4a261f1bed90":{"meterId":"5144ecccaddd4619970e4a261f1bed90","manufacturerId":"ESY","serialNumber":"604xxxxx","fullSerialNumber":"1ESY11604xxxxx","printedFullSerialNumber":"1ESY11604xxxxx","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"DE0004961234500000000000xxxxxxxxx","type":"ESY","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":1474271098757,"lastMeasurementTime":1658729707213}} discovergy.0 | 23628 | 2022-07-25 08:15:09.493 | info | All meters associated to your account discovered, initialise meters discovergy.0 | 23628 | 2022-07-25 08:15:09.246 | error | State type : printedFullSerialNumber unknown, send this information to the developer ==> printedFullSerialNumber : "1ESY11604xxxxx" discovergy.0 | 23628 | 2022-07-25 08:15:09.204 | debug | {"meterId":"5144ecccaddd4619970e4a261f1bed90","manufacturerId":"ESY","serialNumber":"604xxxxx","fullSerialNumber":"1ESY11604xxxxx","printedFullSerialNumber":"1ESY11604xxxxx","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Ort","country":"DE"},"administrationNumber":"DE0004961234500000000000xxxxxxxxx","type":"ESY","measurementType":"ELECTRICITY","loadProfileType":"SLP","scalingFactor":1,"currentScalingFactor":1,"voltageScalingFactor":1,"internalMeters":1,"firstMeasurementTime":1474271098757,"lastMeasurementTime":1658729707213} discovergy.0 | 23628 | 2022-07-25 08:15:08.964 | error | State type : printedFullSerialNumber unknown, send this information to the developer ==> printedFullSerialNumber : "604xxxxx_GENERATOR" discovergy.0 | 23628 | 2022-07-25 08:15:08.858 | debug | {"meterId":"19685574668445fabxxxxxxxxxxxxxxx","manufacturerId":"GENERIC","serialNumber":"604xxxxx_GENERATOR","fullSerialNumber":"","printedFullSerialNumber":"604xxxxx_GENERATOR","location":{"street":"Straße","streetNumber":"00","zip":"12345","city":"Westersted
TPPLordt commented 2 years ago

Hi, I got it. I create one new account and now it works. I thing, I have some problems with the main account.

bye