From fd948b6f96a52006559c29f0fa1299a63a3366ea Mon Sep 17 00:00:00 2001 From: mzack Date: Tue, 10 Aug 2021 11:49:01 +0200 Subject: [PATCH] Adding support to ignore random internal errors --- v2/pkg/protocols/http/request.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/pkg/protocols/http/request.go b/v2/pkg/protocols/http/request.go index 0ece585a9..a3de4f449 100644 --- a/v2/pkg/protocols/http/request.go +++ b/v2/pkg/protocols/http/request.go @@ -354,7 +354,7 @@ func (r *Request) executeRequest(reqURL string, request *generatedRequest, previ // Ignore body read due to server misconfiguration errors if stringsutil.ContainsAny(err.Error(), "gzip: invalid header") { gologger.Warning().Msgf("[%s] Server sent an invalid gzip header and it was not possible to read the uncompressed body for %s: %s", r.options.TemplateID, formedURL, err.Error()) - } else if !stringsutil.ContainsAny(err.Error(), "unexpected EOF") { // ignore EOF error + } else if !stringsutil.ContainsAny(err.Error(), "unexpected EOF", "user canceled") { // ignore EOF and random error return errors.Wrap(err, "could not read http body") } }