Skip to content
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

Fehler: uncaught exception: The value of "offset" is out of range. It must be >= 0 and <= 0. Received 4 #20

Closed
Tuphal opened this issue Dec 25, 2020 · 3 comments

Comments

@Tuphal
Copy link

Tuphal commented Dec 25, 2020

Ich bekomme bei jeder Aktualisierung folgenden Fehler:

> 2020-12-26 00:08:58.455  - error: luxtronik2.0 (1791) uncaught exception: The value of "offset" is out of range. It must be >= 0 and <= 0. Received 4
> --
> 2020-12-26 00:08:58.456  - error:  luxtronik2.0 (1791) RangeError [ERR_OUT_OF_RANGE]: The value of  "offset" is out of range. It must be >= 0 and <= 0. Received 4
> at boundsError (internal/buffer.js:82:9)
> at Buffer.readInt32BE (internal/buffer.js:478:5)
> at Luxtronik. (/opt/iobroker/node_modules/luxtronik2/luxtronik.js:406:37)
> at Socket.emit (events.js:314:20)
> at addChunk (_stream_readable.js:297:12)
> at readableAddChunk (_stream_readable.js:272:9)
> at Socket.Readable.push (_stream_readable.js:213:10)
> at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
> 2020-12-26 00:08:58.464  - info: luxtronik2.0 (1791) terminating
> 2020-12-26 00:08:58.465  - info: luxtronik2.0 (1791) Terminated (NO_ERROR): Without reason
> 2020-12-26 00:08:58.496  - error: luxtronik2.0 (1791) uncaught exception: The value of "offset" is out of range. It must be >= 0 and <= 0. Received 4
> 2020-12-26 00:08:58.496  - error:  luxtronik2.0 (1791) RangeError [ERR_OUT_OF_RANGE]: The value of  "offset" is out of range. It must be >= 0 and <= 0. Received 4
> at boundsError (internal/buffer.js:82:9)
> at Buffer.readInt32BE (internal/buffer.js:478:5)
> at Luxtronik. (/opt/iobroker/node_modules/luxtronik2/luxtronik.js:390:37)
> at Socket.emit (events.js:314:20)
> at addChunk (_stream_readable.js:297:12)
> at readableAddChunk (_stream_readable.js:272:9)
> at Socket.Readable.push (_stream_readable.js:213:10)
> at TCP.onStreamRead (internal/stream_base_commons.js:188:23)
> 2020-12-26 00:08:58.535  - error: luxtronik2.0 (1791) uncaught exception: The value of "offset" is out of range. It must be >= 0 and <= 0. Received 4
> 2020-12-26 00:08:58.536  - error:  luxtronik2.0 (1791) RangeError [ERR_OUT_OF_RANGE]: The value of  "offset" is out of range. It must be >= 0 and <= 0. Received 4
> at boundsError (internal/buffer.js:82:9)
> at Buffer.readInt32BE (internal/buffer.js:478:5)
> at Luxtronik. (/opt/iobroker/node_modules/luxtronik2/luxtronik.js:406:37)
> at Socket.emit (events.js:314:20)
> at addChunk (_stream_readable.js:297:12)
> at readableAddChunk (_stream_readable.js:272:9)
> at Socket.Readable.push (_stream_readable.js:213:10)
> at TCP.onStreamRead (internal/stream_base_commons.js:188:23)

Wärmepumpe: Alha-Innotec
Softwarestand: V3.85.1 (r5783)

grafik

Edit: Log Output formatiert

@UncleSamSwiss
Copy link
Owner

Das ist leider ein bekanntes Problem der darunter liegenden Library.

Es gibt aktuell einen kleinen "Hack" in meinem Adapter (den ich bei mir auch anwede):
Du musst manuell in den Einstellungen zur Adapter Instanz die Variable useLuxProxy: true setzen.
Der einfachste Weg ist:

  1. in der Objekt-Ansicht in Admin den Experten-Modus einschalten
  2. bei system.adapter.luxtronik2.0 ganz rechts auf den Bleistift klicken
  3. auf den Tab "Native" wechseln
  4. dort auf das "+" Symbol klicken
  5. im Dialog den Namen "useLuxProxy" eingeben
  6. im neuen Feld den Wert "true" eingeben
  7. "Speichern" klicken
  8. den Experten-Modus wieder ausschalten

@Tuphal
Copy link
Author

Tuphal commented Jan 2, 2021

funktioniert perfekt.
Danke!

@robseh
Copy link

robseh commented Sep 5, 2021

Moin! Ich kann leider den Tab "Native" nicht finden. Ist der bei einem Update irgendwo verloren gegangen? Oder bin ich falsch davor?
Kann man das sonst direkt in die Objektdaten irgendwo eintragen?
Bildschirmfoto 2021-09-05 um 22 12 41
Ich danke Euch für die Unterstützung!
admin-version v5.1.23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants