NEWS
Log Error: maxContentLength size of -1 exceeded
-
@arteck sagte in Log Error: maxContentLength size of -1 exceeded:
pack da noch timeout rein
probier ich aus, Danke.
-
@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 };
-
@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 ? -
@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.
-
@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. -
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.
-
@bahnuhr das Ding gibt dir ab und an nix zurück..
-
@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 sagte in Log Error: maxContentLength size of -1 exceeded:
mach das weg
console.error(err);
dann kommt die Maldung auch nicht
Ja, genau.
Hätte ich auch selber drauf kommen können.
Danke. -
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.