Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Log Error: maxContentLength size of -1 exceeded

    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

    Log Error: maxContentLength size of -1 exceeded

    This topic has been deleted. Only users with topic management privileges can see it.
    • paul53
      paul53 @arteck last edited by paul53

      @arteck sagte: pack da noch timeout rein

      2000 ist default. Aus lib/tools.js:

          const config = {
              method: 'get',
              url,
              validateStatus: (status) => status >= 200,
              responseType: (options && options.responseType) ? options.responseType : 'text',
              responseEncoding: 'utf8',
              timeout: (options && !isNaN(options.timeout)) ? options.timeout : 2000
          };
      
      bahnuhr 1 Reply Last reply Reply Quote 0
      • bahnuhr
        bahnuhr Forum Testing Most Active @paul53 last edited by

        @paul53 sagte in Log Error: maxContentLength size of -1 exceeded:

        2000 ist default. Aus lib/tools.js:

        Und das heißt jetzt ?

        Also eher hoch setzen auf 3000 oder 4000.
        richtig ?

        paul53 1 Reply Last reply Reply Quote 0
        • paul53
          paul53 @bahnuhr last edited by paul53

          @bahnuhr sagte: eher hoch setzen auf 3000 oder 4000.

          Keine Ahnung, ob es bei diesem Fehler hilft.

          EDIT: Ich würde es eher mit {responseType: 'document'} versuchen.

          bahnuhr 1 Reply Last reply Reply Quote 0
          • bahnuhr
            bahnuhr Forum Testing Most Active @paul53 last edited by

            @paul53 sagte in Log Error: maxContentLength size of -1 exceeded:

            Ich würde es eher mit {responseType: 'document'} versuchen.

            Kann ich auch ausprobieren.
            Danke für deine Info.

            1 Reply Last reply Reply Quote 0
            • bahnuhr
              bahnuhr Forum Testing Most Active last edited by

              Der Fehler kam heute wieder:

              javascript.0
              2024-05-16 10:32:09.412	error	script.js.Scripte.Geraete.Photovoltaik_2012: maxContentLength size of -1 exceeded
              
              javascript.0
              2024-05-16 10:00:09.413	error	script.js.Scripte.Geraete.Photovoltaik_2012: maxContentLength size of -1 exceeded
              

              Eingestellt habe ich nun:

              timeout: 4000, responseType: 'document'
              

              Gibts noch Ideen was man ändern könnte.

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

                @bahnuhr das Ding gibt dir ab und an nix zurück..

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

                  @arteck sagte in Log Error: maxContentLength size of -1 exceeded:

                  @bahnuhr das Ding gibt dir ab und an nix zurück..

                  ok, dann lasse ich es jetzt so.

                  Nachtrag:
                  Bei request kam eine solche Meldung nicht.

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

                    @bahnuhr

                    mach das weg

                    console.error(err);
                    

                    dann kommt die Maldung auch nicht

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

                      @arteck sagte in Log Error: maxContentLength size of -1 exceeded:

                      @bahnuhr

                      mach das weg

                      console.error(err);
                      

                      dann kommt die Maldung auch nicht

                      Ja, genau.
                      Hätte ich auch selber drauf kommen können.
                      Danke.

                      1 Reply Last reply Reply Quote 0
                      • bahnuhr
                        bahnuhr Forum Testing Most Active last edited by

                        Habe es mal so geändert:

                            if (err) { 
                                if (err.indexOf("size of -1") != -1) {
                                    log ("size -1 enthalten");
                                } else {
                                    console.error(err); 
                                }
                            } else { 
                        

                        Mal schauen ob dies funktioniert. Wenn ja, dann mach ich log("size... weg.

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

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        559
                        Online

                        31.8k
                        Users

                        80.0k
                        Topics

                        1.3m
                        Posts

                        error httpget maxcontentlength
                        3
                        13
                        385
                        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