Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. [Gelöst] TypeError: Cannot read property '0' of null

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [Gelöst] TypeError: Cannot read property '0' of null

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

      Systemdata Bitte Ausfüllen
      Hardwaresystem: Synology DS 920+
      Arbeitsspeicher: 20 GB
      Festplattenart: HDD
      Betriebssystem: Ubuntu/Windows/Mac
      Node-Version: V14.18.2
      Nodejs-Version: V14.18.2
      NPM-Version: 6.14.15
      Installationsart: Skript/Manuell
      Image genutzt: Ja/Nein
      Ort/Name der Imagedatei: Link

      Guten Morgen allerseits,

      seit zwei Tagen plagt mich im Log eine Fehlermeldung, die ich nicht zuordnen kann.

      022-01-19 07:04:59.206 - info: javascript.0 (32125) Start javascript script.js.common.Beleuchtung.Beleuchtung_Deckenlampe_Henri_Aufwecken_Alexa
      2022-01-19 07:04:59.210 - info: javascript.0 (32125) script.js.common.Beleuchtung.Beleuchtung_Deckenlampe_Henri_Aufwecken_Alexa: registered 1 subscription and 0 schedules
      2022-01-19 07:04:59.210 - info: javascript.0 (32125) Start javascript script.js.common.Beleuchtung.Beleuchtung_Deckenlampe_Henri_keine_Bewegung
      2022-01-19 07:04:59.213 - info: javascript.0 (32125) script.js.common.Beleuchtung.Beleuchtung_Deckenlampe_Henri_keine_Bewegung: registered 1 subscription and 0 schedules
      2022-01-19 07:05:00.042 - info: host.buanet-iobroker-neu instance system.adapter.dwd.0 started with pid 32140
      2022-01-19 07:05:00.915 - error: javascript.0 (32125) Error in request callback: TypeError: Cannot read property '0' of null
      2022-01-19 07:05:00.934 - info: dwd.0 (32140) starting. Version 2.7.7 in /opt/iobroker/node_modules/iobroker.dwd, node: v14.18.2, js-controller: 3.3.22
      2022-01-19 07:05:01.787 - info: dwd.0 (32140) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
      2022-01-19 07:05:02.304 - info: host.buanet-iobroker-neu instance system.adapter.dwd.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
      2022-01-19 07:05:23.330 - info: go-e.0 (453) State value to set for "go-e.0.temperatures.tempereatureArray" has to be stringified but received type "object"
      2022-01-19 07:06:11.653 - info: javascript.0 (32125) Start javascript script.js.common.Telefon.Anrufer_Ansage_Alexa
      2022-01-19 07:06:11.667 - info: javascript.0 (32125) script.js.common.Telefon.Anrufer_Ansage_Alexa: registered 1 subscription and 0 schedules
      2022-01-19 07:06:23.350 - info: go-e.0 (453) State value to set for "go-e.0.temperatures.tempereatureArray" has to be stringified but received type "object"
      2022-01-19 07:07:23.310 - info: go-e.0 (453) State value to set for "go-e.0.temperatures.tempereatureArray" has to be stringified but received type "object"
      2022-01-19 07:08:00.204 - error: javascript.0 (32125) Error in request callback: TypeError: Cannot read property '0' of null
      2022-01-19 07:08:23.315 - info: go-e.0 (453) State value to set for "go-e.0.temperatures.tempereatureArray" has to be stringified but received type "object"
      2022-01-19 07:08:24.079 - info: synology.0 (182) State value to set for "synology.0.DiskStationManager.vol_info.volume_1.used_size" has to be type "number" but received type "string"
      2022-01-19 07:08:46.468 - info: synology.0 (182) State value to set for "synology.0.DiskStationManager.vol_info.volume_1.used_size" has to be type "number" but received type "string"
      2022-01-19 07:09:23.301 - info: go-e.0 (453) State value to set for "go-e.0.temperatures.tempereatureArray" has to be stringified but received type "object"
      2022-01-19 07:10:00.043 - info: host.buanet-iobroker-neu instance system.adapter.dwd.0 started with pid 32443
      2022-01-19 07:10:00.910 - info: dwd.0 (32443) starting. Version 2.7.7 in /opt/iobroker/node_modules/iobroker.dwd, node: v14.18.2, js-controller: 3.3.22
      2022-01-19 07:10:01.668 - info: dwd.0 (32443) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
      2022-01-19 07:10:02.187 - info: host.buanet-iobroker-neu instance system.adapter.dwd.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
      

      Der Fehler "TypeError: Cannot read property '0' of null" tritt ohne sichtlichen Zusammenhang mit Scripten oder Geräten auf.

      Weiß vielleicht jemand Rat?

      Danke vorab und Gruß

      arteck Jey Cee 2 Replies Last reply Reply Quote 0
      • arteck
        arteck Developer Most Active @allvaron last edited by

        @allvaron sagte in TypeError: Cannot read property '0' of null:

        error: javascript.0 (32125) Error in request callback: TypeError: Cannot read property '0' of null

        es kommst schon mal von einem Script..
        verarbeitest du irgendwo ein array dass nicht gefüllt ist und du drüber interieren willst?

        1 Reply Last reply Reply Quote 0
        • Jey Cee
          Jey Cee Developer @allvaron last edited by

          @allvaron request wird genutzt um eine URL ab zu fragen. Das heist du solltest erst mal alle Skripte durschauen die irgendwas von einer URL holen.
          Der Fehler tritt innerhalb eines request Funktionsaufrufs statt, also suchst du nach so einer Funktion.

          A 1 Reply Last reply Reply Quote 0
          • A
            allvaron @Jey Cee last edited by allvaron

            @jey-cee
            Top, danke. Hab den Übeltäter gefunden. Es lag an der Abfrage zum aktuellsten Tagesschau in 100 Sekunden Link für VIS.

            Worin besteht das Problem und wie kann ich es lösen?

            Jey Cee 1 Reply Last reply Reply Quote 0
            • Jey Cee
              Jey Cee Developer @allvaron last edited by

              @allvaron wie arteck schon geschrieben hat:

              @arteck sagte in TypeError: Cannot read property '0' of null:

              verarbeitest du irgendwo ein array dass nicht gefüllt ist und du drüber interieren willst?

              A 1 Reply Last reply Reply Quote 0
              • A
                allvaron @Jey Cee last edited by

                @jey-cee
                @arteck

                Danke für eure Hilfe. Das Problem zu lösen übersteigt meine Programmierkenntnisse :). Ich kämpfe mich mal durch den entsprechenden Thread, in dem ich das Script gefunden habe.

                LG

                1 Reply Last reply Reply Quote 0
                • arteck
                  arteck Developer Most Active last edited by

                  @allvaron poste mal das script

                  crunchip 1 Reply Last reply Reply Quote 0
                  • crunchip
                    crunchip Forum Testing Most Active @arteck last edited by

                    @arteck https://forum.iobroker.net/post/624359

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

                    Support us

                    ioBroker
                    Community Adapters
                    Donate

                    447
                    Online

                    31.7k
                    Users

                    79.8k
                    Topics

                    1.3m
                    Posts

                    error im log javasript
                    4
                    8
                    1779
                    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