ioBroker.javascript icon indicating copy to clipboard operation
ioBroker.javascript copied to clipboard

Occasional timeout Error in log since javascript 7.2.0

Open GitHoubi opened this issue 2 years ago • 16 comments

Describe the bug
Since version 7.2. of the javascript Adapater I have timeout errors in two of my Blocky scripts. As far as I can see, everything regarding the scripts themselves works perfectly. The only thing is that these timeout errors keep appearing in the log.

This behavior is identical for versions 7.2.0, 7.3.0 and 7.4.0. If I go back to 7.1.6, the timeout errors also disappear, this can be reproduced as often as required.

To Reproduce
Force SendTo action

Expected behavior
No Timeout Errors in the Log as with 7.1.6 or older

Screenshots & Logfiles
image

Versions:

  • Adapter version: 7.2.0, 7.3.0, 7.4.0
  • JS-Controller version: 5.0.17
  • Node version: v18.19.0
  • Operating system: Debian Bookworm

GitHoubi avatar Dec 13 '23 11:12 GitHoubi

Already fixed in b9f58609939b072b96a30af1538c06317364e618

Thanks for testing this beta version

klein0r avatar Dec 13 '23 16:12 klein0r

Already fixed in b9f5860

Thanks for testing this beta version

Hi Matthias

Klappt wunderbar mit dem neuen sandbox.js file, hab vielen herzlichen Dank.

GitHoubi avatar Dec 14 '23 17:12 GitHoubi

fixed with https://github.com/ioBroker/ioBroker.javascript/commit/b9f58609939b072b96a30af1538c06317364e618

GitHoubi avatar Dec 14 '23 17:12 GitHoubi

I'm still facing this error with javascript 8.03. It seems to be connected to "send to" function block.

passuff avatar Apr 18 '24 21:04 passuff

It seems to be connected to "send to" function block.

Yes, it can happen if you provide a callback function but you use sendTo to "all instances". In that case no instance returns a result and the sandbox returns a timeout (to ensure the async methods will not block forever).

@passuff Please share some code / examples which generates that issue.

klein0r avatar Apr 22 '24 17:04 klein0r

When I remember correctly in this case the first answer should be used as result and being returned .... at least on js.controller level

Apollon77 avatar Apr 23 '24 07:04 Apollon77

Screenshot 2024-05-01 094437

Screenshot 2024-05-01 094619

Abgesehen davon versteh ich den Timeout eh nicht, kann ich einstellen was ich will und gefühlt macht er was er will.

zaphod2 avatar May 01 '24 08:05 zaphod2

@zaphod2 Welche version ist das? Bitte mit der aktuellsten beta testen.

klein0r avatar May 03 '24 14:05 klein0r

Sorry, war v8.0.3 Habe jetzt mal v8.1.1 installiert.

zaphod2 avatar May 03 '24 15:05 zaphod2

Ist auch mit 8.1.1 vorhanden.

zaphod2 avatar May 07 '24 19:05 zaphod2

Ist auch mit 8.2.0 vorhanden.

zaphod2 avatar May 09 '24 05:05 zaphod2

@zaphod2 Und wir auch in der nächsten Version enthalten sein, wenn sich hier am Issue nichts ändert...

klein0r avatar May 09 '24 07:05 klein0r

mit 8.4.2 auch noch nicht behoben.

zaphod2 avatar May 29 '24 15:05 zaphod2

Timeout auf 0ms stellen hat bei mir als Workaround funktioniert...

VierlingMt avatar Jun 11 '24 11:06 VierlingMt

@VierlingMt Hier geht es nicht um http-Blöcke, der Timeout der sendTo-Blöcke ist nicht konfigurierbar

klein0r avatar Jun 11 '24 12:06 klein0r

@VierlingMt Hier geht es nicht um http-Blöcke, der Timeout der sendTo-Blöcke ist nicht konfigurierbar

Ups sorry 🙈🤗

VierlingMt avatar Jun 11 '24 12:06 VierlingMt