From 15c00740913c83c994d1366868023c7603715c8f Mon Sep 17 00:00:00 2001 From: Gregory Russell Date: Fri, 26 Apr 2019 22:37:51 -0400 Subject: [PATCH] remove DisallowUnknownFields --- api/v2/api-v2.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/v2/api-v2.go b/api/v2/api-v2.go index 267f8809..1ec51030 100644 --- a/api/v2/api-v2.go +++ b/api/v2/api-v2.go @@ -180,9 +180,8 @@ func GetAnnotations(ctx context.Context, url string, date time.Time, ips []strin // When this happens, it is likely to be very spammy. decodeLogEvery.Println("Decode error:", err) + // Try again but ignore unknown fields. decoder := json.NewDecoder(bytes.NewReader(body)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&resp) if err != nil { // This is a more serious error.