From f712ba54bccf9df44738e4cd2f1011445560a7f7 Mon Sep 17 00:00:00 2001 From: ali Date: Fri, 12 Jan 2024 11:10:11 +0300 Subject: [PATCH] parse all error response bodies --- clients/graphql/batch.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/clients/graphql/batch.go b/clients/graphql/batch.go index 5ae8e9b..e367918 100644 --- a/clients/graphql/batch.go +++ b/clients/graphql/batch.go @@ -153,10 +153,6 @@ func makeRequest(ctx context.Context, client string, req *graphql.Request, heade } defer httpResp.Body.Close() - if httpResp.StatusCode == http.StatusInternalServerError { - return nil, ErrResponseSizeTooBig - } - if httpResp.StatusCode != http.StatusOK { var respBody []byte respBody, err = io.ReadAll(httpResp.Body)