Giter VIP home page Giter VIP logo

Comments (6)

Apollon77 avatar Apollon77 commented on August 15, 2024

Thenn it seems to me that this binding is invalid because it requests the "http URL" as object id in the background whoch is anninvalid id. Yes it was working long time because js.controller did not hardly check such completely invalid Object IDs.

Please adjust the binding.

and/or make sure (I assume you use js.contrtoller 5? to also update all adapters to latest beta, because this crash should be fixed already

from iobroker.web.

JBSullivan avatar JBSullivan commented on August 15, 2024

So, eben alles auf den aktuellsten Stand gebracht:

Node: 18.17.0
Npm: 9.6.7
Admin: 6.7.0
js-controller: 5.0.11
Web Adapter: 6.1.0

Die Frage ist, wo im Binding liegt der Fehler? Sind das die Sonderzeichen "_ -"? Das könnte schwierig werden, weil ein Teil der URL wird von Grafana selbstständig generiert ohne das ich da einen Einfluss drauf habe ( z.B. /y-NtFCqVz/.... ).

`

host.GLT   2023-08-03 12:40:53.379 error instance system.adapter.web.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
host.GLT   2023-08-03 12:40:53.378 error Caught by controller[0]: at parseType (C:\ioBroker\GLT\node_modules\redis-parser\lib\parser.js:302:14)
host.GLT   2023-08-03 12:40:53.378 error Caught by controller[0]: at parseError (C:\ioBroker\GLT\node_modules\redis-parser\lib\parser.js:179:12)
host.GLT   2023-08-03 12:40:53.378 error Caught by controller[0]: ?orgId=1&refresh=10s&from=now-24h&to=now&kiosk" is not a valid ID pattern
host.GLT   2023-08-03 12:40:53.378 error Caught by controller[0]: ReplyError: Error The pattern "http://10.122.60.87:3000/d/_YPf3jtHz/frequenz-vergleich
host.GLT   2023-08-03 12:40:53.378 error Caught by controller[0]: 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(). The promise rejected with the reason:
web.0 9152 2023-08-03 12:40:52.359 error Error The pattern "http://10.122.60.87:3000/d/_YPf3jtHz/frequenz-vergleich ?orgId=1&refresh=10s&from=now-24h&to=now&kiosk" is not a valid ID pattern
web.0 9152 2023-08-03 12:40:52.359 error ReplyError: Error The pattern "http://10.122.60.87:3000/d/_YPf3jtHz/frequenz-vergleich ?orgId=1&refresh=10s&from=now-24h&to=now&kiosk" is not a valid ID pattern at parseError (C:\ioBroker\GLT\node_modules\redis-parser\lib\parser.js:179:12) at parseType (C:\ioBroker\GLT\node_modules\redis-parser\lib\parser.js:302:14)
web.0 9152 2023-08-03 12:40:52.353 error unhandled promise rejection: Error The pattern "http://10.122.60.87:3000/d/_YPf3jtHz/frequenz-vergleich ?orgId=1&refresh=10s&from=now-24h&to=now&kiosk" is not a valid ID pattern
web.0 9152 2023-08-03 12:40:52.353 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().
web.0 9152 2023-08-03 12:38:33.438 error Invalid pattern on subscribe: The pattern "http://10.122.60.87:3000/d/86YdIsuVz/shelly-sumpfpumpe?orgId=1&refresh=10s&from=now-24h&to=now&kiosk" is not a valid ID pattern
 


`

from iobroker.web.

Apollon77 avatar Apollon77 commented on August 15, 2024

Wie lautet denn die objektID die da in dem Feld steht? Und man mus genau schauen eas das Widget tut... am ENd elandet wihl irgendwie die URL als Objekt ID und wird abgefragt

from iobroker.web.

JBSullivan avatar JBSullivan commented on August 15, 2024

Was meinst du mit Objekt ID? Da kann ich jetzt nichts mit anfangen.

Das hier?

image

{ "common": { "name": "Grafana View URL", "role": "info.url", "type": "string", "read": true, "write": true, "def": "" }, "native": {}, "type": "state", "from": "system.adapter.javascript.0", "user": "system.user.admin", "ts": 1609532111027, "_id": "0_userdata.0.grafanaSolar.grafanaViewURL", "acl": { "object": 1636, "state": 1636, "owner": "system.user.admin", "ownerGroup": "system.group.administrator" } }

Und das ist das Blockly was aus den unterschiedlichen Pull Down Listeneinträgen eine URL zusammenbaut.

image

from iobroker.web.

Apollon77 avatar Apollon77 commented on August 15, 2024

Ok, dann wird scheinbar der WERT von dem "grafanaViewURL" state nochmal angefragt ... frage ist jetzt warum. Da muss jemand rander die bundungs besser versteht ... vllt @foxriver76 eine Idee?

from iobroker.web.

ahnungsbefreit avatar ahnungsbefreit commented on August 15, 2024

Siehe auch meinen Comment hier: Scheint das selbe Problem zu sein, oder?

from iobroker.web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.