Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Simple API Malformed URL encoding

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Simple API Malformed URL encoding

    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      Gerti last edited by

      Hallo,

      ich frage per JavaScript die Simple-API ab und bekomme dabei folgenden Fehler im Logfile angezeigt:

      Malformed URL encoding for "mqtt.0.openWB.housebattery.%Soc": URIError: URI malformed
      

      Mein Javascriptaufruf dazu sieht so aus:

      http.open("GET", 'http://192.168.2.20:8088/getPlainValue/mqtt.0.openWB.housebattery.%25Soc',true); 
      

      Die Anfrage gibt mir auch den korrekten Wert dieses Objekts zurück, trotzdem gibt es den Eintrag im Log. WIe muss ich mqtt.0.openWB.housebattery.%Soc denn codieren, damit der Fehler nicht erscheint?

      Gruß,
      Gerti

      liv-in-sky 2 Replies Last reply Reply Quote 0
      • liv-in-sky
        liv-in-sky @Gerti last edited by

        @Gerti
        hast du da mal getestet:

        encodeURIComponent()

        G 1 Reply Last reply Reply Quote 0
        • liv-in-sky
          liv-in-sky @Gerti last edited by liv-in-sky

          @gerti

          bist du beim port 8088 sicher - standard ist 8087 beim installierten simple-api adapter

          1 Reply Last reply Reply Quote 0
          • G
            Gerti @liv-in-sky last edited by Gerti

            @liv-in-sky
            Sorry für die späte Rückmeldung...
            Hat leider nicht funktioniert...Fehler bleibt...

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            Support us

            ioBroker
            Community Adapters
            Donate
            FAQ Cloud / IOT
            HowTo: Node.js-Update
            HowTo: Backup/Restore
            Downloads
            BLOG

            978
            Online

            31.9k
            Users

            80.1k
            Topics

            1.3m
            Posts

            2
            4
            337
            Loading More Posts
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes
            Reply
            • Reply as topic
            Log in to reply
            Community
            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
            The ioBroker Community 2014-2023
            logo