Closed ihavenonick closed 5 years ago
aktuell in der 4.1.0 ganz extrem, während die 4.0.12 diesen Fehler gar nicht hat (zumindest bei mir mit js-controller 1.5.7). In der 4.1.0 ist das bearbeiten von vorhandenen Blockly kaum möglich, da manche nicht extrahiert werden können. ( in der Browserkonsole steht dann was von zugriff verweigert... anscheinend ein Rechte-Problem? Habe es mit und ohne Expertenmodus probiert. )
Bitte unbedingt die Browser console beobachten
Das dürfte die Ursache sein, da alle Blocklys die nicht angezeigt werden könmem, diesen Baustein enthalten.
So, hier wie gewünscht aus Version 4.1.2 die Meldungen aus der Browserconsole, ich muss noch herausfinden, was der Unterschied zwischen den Blocklys ist, da 90% funktionieren, aber einige eben mit einem "cannot extract blockly code" enden. Man kann sie auch garnicht öffnen, egal wie oft ich hin und her klicke.
`Subscribe logs main.3dd41383.chunk.js:1:273429 WARNING: No message string for %{BKY_LOGIC_COMPARE_TOOLTIP_EQ}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_LOGIC_COMPARE_TOOLTIP_NEQ}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_LOGIC_COMPARE_TOOLTIP_LT}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_LOGIC_COMPARE_TOOLTIP_LTE}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_LOGIC_COMPARE_TOOLTIP_GT}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_LOGIC_COMPARE_TOOLTIP_GTE}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_LOGIC_OPERATION_TOOLTIP_AND}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_LOGIC_OPERATION_TOOLTIP_OR}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_CONTROLS_WHILEUNTIL_TOOLTIP_WHILE}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_CONTROLS_WHILEUNTIL_TOOLTIP_UNTIL}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_CONTROLS_FLOW_STATEMENTS_TOOLTIP_BREAK}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_CONTROLS_FLOW_STATEMENTS_TOOLTIP_CONTINUE}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_CONTROLS_FOR_TOOLTIP}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_CONTROLS_FOREACH_TOOLTIP}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_MATH_ARITHMETIC_TOOLTIP_ADD}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_MATH_ARITHMETIC_TOOLTIP_MINUS}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_MATH_ARITHMETIC_TOOLTIP_MULTIPLY}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_MATH_ARITHMETIC_TOOLTIP_DIVIDE}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_MATH_ARITHMETIC_TOOLTIP_POWER}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_MATH_SINGLE_TOOLTIP_ROOT}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_MATH_SINGLE_TOOLTIP_ABS}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_MATH_SINGLE_TOOLTIP_NEG}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_MATH_SINGLE_TOOLTIP_LN}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_MATH_SINGLE_TOOLTIP_LOG10}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_MATH_SINGLE_TOOLTIP_EXP}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_MATH_SINGLE_TOOLTIP_POW10}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_MATH_TRIG_TOOLTIP_SIN}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_MATH_TRIG_TOOLTIP_COS}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_MATH_TRIG_TOOLTIP_TAN}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_MATH_TRIG_TOOLTIP_ASIN}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_MATH_TRIG_TOOLTIP_ACOS}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_MATH_TRIG_TOOLTIP_ATAN}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_MATH_ONLIST_TOOLTIP_SUM}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_MATH_ONLIST_TOOLTIP_MIN}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_MATH_ONLIST_TOOLTIP_MAX}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_MATH_ONLIST_TOOLTIP_AVERAGE}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_MATH_ONLIST_TOOLTIP_MEDIAN}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_MATH_ONLIST_TOOLTIP_MODE}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_MATH_ONLIST_TOOLTIP_STD_DEV}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_MATH_ONLIST_TOOLTIP_RANDOM}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_MATH_CHANGE_TOOLTIP}. blockly_compressed.js:893:280 WARNING: No message string for %{BKY_TEXT_APPEND_TOOLTIP}. blockly_compressed.js:893:280 Detected custom blockly: cloud main.3dd41383.chunk.js:1:132126 Detected custom blockly: iot main.3dd41383.chunk.js:1:132126 Detected custom blockly: email main.3dd41383.chunk.js:1:132126 Translate: Filter by main.3dd41383.chunk.js:1:66785 Translate: Filter by main.3dd41383.chunk.js:1:66785 Translate: Filter by main.3dd41383.chunk.js:1:66785
Schau mal bitte ob bei Dir auch nur Blocklys betroffen sind die den von Rantanplan oben verlinkten Block enthalten, dann wäre das Problem sehr eng eingegrenzt. Bei mir trifft das nämlich zu.
Hab mal etliche Scripte in beiden Versionen ( hab ne Testinst. mit V4.1.2 und mein Hauptsystem mit 4.0.12 ) zum Vergleichen angeschaut, es ist leider! nicht der Zwischen-Zeit-Block.. es sind Scripte mit diesem, aber auch ohne, die sich nicht öffnen lassen. Sogar einfache, nur falls-abfrage, dann Telegramm-Message. :-(
@Ilovegym66 Kann ich bei mir nicht nachvollziehen. Habe hier ca. 200 Scripte die sich ohne Probleme öffnen lassen. Arbeite haupsächlich mit Firefox. Vor längerer Zeit hatte ich auch mal diese Probleme. Da hat ein leeren vom Browser Cache geholfen.
@Rantanplan01 leider hilft das nicht, verwende auch Firefox und habe ja gleichzeitig die alte 4.0.12 und neue Version 4.1.2 in verschiedenen Tabs offen, bei der alten kann ich die Scripte problemlos öffnen, in der neuen Version nicht. Nee, den Browser schliesse ich aus, mit Chrome ist es gleich. Sieht mir eher was mit Zugriffsrechten aus, vielleicht wurden die einen Scripts im Expertenmodus erstellt und die anderen nicht, weils den damals noch nicht gab oder so..
Mit dem Browser hat das wohl nichts zu tun. Mit Firefox lassen sich die Scripte schließlich auch nach einem Downgrade vom JS Adapter wieder öffnen.
@Ilovegym66 Der Expertenmodus im Blockly Editor? Der blendet doch nur den Ordner "global" ein und aus. Oder macht der auch noch was anderes?
@Rantanplan01 eigentlich nicht, seitdem exestiert das Problem... @GermanBluefox hier nochmal was aus der Browserconsole, ich hoffe, man kann etwas damit anfangen, ich habe erst ein Blockly geöffnet, das nicht geht, dann eins, das geht:
`Attempt to set a forbidden header was denied: Connection
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://collector.githubapp.com/github-external/browser_event. (Reason: CORS request did not succeed).[Learn More]
Content Security Policy: Ignoring ‘x-frame-options’ because of ‘frame-ancestors’ directive.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at ‘https://api.github.com/_private/browser/stats’. (Reason: Credential is not supported if the CORS header ‘Access-Control-Allow-Origin’ is ‘’).[Learn More]
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://collector.githubapp.com/github-external/browser_event. (Reason: CORS request did not succeed).[Learn More]
Content Security Policy: Ignoring ‘x-frame-options’ because of ‘frame-ancestors’ directive.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at ‘https://api.github.com/_private/browser/stats’. (Reason: Credential is not supported if the CORS header ‘Access-Control-Allow-Origin’ is ‘’).[Learn More]
[Exception... "Component returned failure code: 0x805e0006 [nsIChannel.asyncOpen2]" nsresult: "0x805e0006 (
(bleufox) fixed one error with "cannot extract blockly" Definitiv nicht gefixt. Die selben Blockly lassen sich immer noch nicht öffnen und bei mir sind ausschließlich Blocklys betroffen die diesen Block beinhalten: Es wäre mehr als ein Zufall, wenn es damit nichts zu tun hätte.
Sieht bei mir genauso aus, sobald der Aktuelle Zeit zwischen x und y drin ist kann ich den blockly nicht mehr öffnen.
(bleufox) fixed one error with "cannot extract blockly" Definitiv nicht gefixt. Die selben Blockly lassen sich immer noch nicht öffnen und bei mir sind ausschließlich Blocklys betroffen die diesen Block beinhalten: Es wäre mehr als ein Zufall, wenn es damit nichts zu tun hätte.
Mit diesem Block ist es definitiv reproduzierbar bei mir.
OK. Damit kann ich auch jetzt reproduzieren. Danke
Problem wurde mit 4.1.3 gelöst
https://forum.iobroker.net/topic/20134/java-script-adapter-4-1-0-mit-bug/11