From a66cfc094ae832a433292e95cdcaeb495ed56ec2 Mon Sep 17 00:00:00 2001 From: TwinProduction Date: Thu, 15 Oct 2020 22:43:24 -0400 Subject: [PATCH] Ignore "unexpected end of JSON input" errors --- core/condition.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/condition.go b/core/condition.go index bcc8ddb1..1a2f5347 100644 --- a/core/condition.go +++ b/core/condition.go @@ -138,7 +138,9 @@ func sanitizeAndResolve(list []string, result *Result) []string { } resolvedElement, resolvedElementLength, err := jsonpath.Eval(strings.Replace(element, fmt.Sprintf("%s.", BodyPlaceHolder), "", 1), result.Body) if err != nil { - result.Errors = append(result.Errors, err.Error()) + if err.Error() != "unexpected end of JSON input" { + result.Errors = append(result.Errors, err.Error()) + } element = fmt.Sprintf("%s %s", element, InvalidConditionElementSuffix) } else { if wantLength {