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

Rules - no configuration panel visible if adapter declares a rule code but it does not exist

Open mcm1957 opened this issue 3 years ago • 11 comments

Describe the bug
When creating a new script of type "Rules" no configuration panel ("blue area") is displayed at one of my systems. Only the normal white scripting area is shown. (see screenshot)

To Reproduce
Steps to reproduce the behavior:

  1. Go to Scripts
  2. Click '+' and select "Rules"
  3. no blue config area is shown. See screenshot

Expected behavior
The config area for Rules should be shown.

Screenshots & Logfiles
image

Versions:

  • Adapter version: JS 6.03, Admin 6.2.22
  • JS-Controller version:
  • Node version: 4.0.23
  • Operating system: Linux pi4 5.15.61-v7l+ #1579 SMP Fri Aug 26 11:13:03 BST 2022 armv7l GNU/Linux

Additional context
The problem does NOT occure on all systems ! a) The problem is 100% reproduceable at my production pi. It occures while accessing the system from two different (windows) system with chrom, edge and firefox browsers.

b) The problem does NOT occure at my windows 10 IOB Testsystem with identical software

c) @feuersturm could reproduce the issue (https://t.me/ioBroker_development/23586)

d) Others incl. @Apollon77 doe NOT have the issue

e) Activating the chrom console die not show problems, at least I did not recognize some. (Will try to attach a log)

Only known difference between production system and testsystem is the different OS version and the fact that JS was upgraded at the production while installed as new installation at the text system. In addition the PI has more adapters installed...

Additionl remark: Reinstall js with identical version (without removing the existing installation) die not change anything

mcm1957 avatar Sep 28 '22 07:09 mcm1957

Reason is that in telegram a rules block is defined but not existing code-wise ... was remove (assumebly unwanted) by https://github.com/iobroker-community-adapters/ioBroker.telegram/commit/9a002e626330508530c42f56ca725a5c0d2bf612

But javascritp adapter should catch such errors and log an error but not "show no rules interface"

Apollon77 avatar Sep 28 '22 07:09 Apollon77

Possibly related: https://github.com/iobroker-community-adapters/ioBroker.telegram/issues/408

BUT at my DVP System the same Telegram Version is installed. And the same errors as shown in issue Telegramm 408 are shown at the console. But JS Rules works fine at this installation !?!?

mcm1957 avatar Sep 28 '22 07:09 mcm1957

The problem is really related to telegram. (Although I think JS should safe itself not to be damaged by other adapters.

What I did: Downgrade Telegram to 1.13.0 --> no change, error still present Deinstalled Telegram (including custum data) --> problem solved

I'll attach chrome log -maybe someone can see details there: 10.17.2.20-1664351653690.log

mcm1957 avatar Sep 28 '22 08:09 mcm1957

Same issue here.

kilasat avatar Oct 05 '22 07:10 kilasat

Next telegram version will have the Rules again

Apollon77 avatar Oct 05 '22 07:10 Apollon77

@mcm1957 Also fixed for you with an updated Telegram?

Apollon77 avatar Oct 24 '22 14:10 Apollon77

Installed Telegramm 1.14.1 works as expected - rules config panel is visible and working I did not test to activeat telegram from ruls yet.

Issue can be close from my side

mcm1957 avatar Oct 24 '22 15:10 mcm1957

I would leave open to make sure Rules screen is not emty if a rule is missing code-wise

Apollon77 avatar Oct 25 '22 07:10 Apollon77

Hello, I also installed Telegramm 1.14.1 and all adapters has the latest stable version, but the problem is still present. What is wrong with my system? Thanks Werner

Wegatarus avatar Nov 19 '22 22:11 Wegatarus

Hello, I also installed Telegramm 1.14.1 and all adapters has the latest stable version, but the problem is still present. What is wrong with my system? Thanks Werner

https://www.iobroker.net/#de/documentation/faq/_040_contibution.md?fehlerindergrafischeoberflchemelden

GermanBluefox avatar Feb 17 '23 08:02 GermanBluefox

see https://github.com/ioBroker/ioBroker.javascript/issues/1148#issuecomment-1290087761

Maybe javascript adapter does not yet catch the situatrion that any adapter declares to support roles but does not provide all files.

mcm1957 avatar Feb 18 '23 14:02 mcm1957