Skip to content

Commit

Permalink
parse all error response bodies
Browse files Browse the repository at this point in the history
  • Loading branch information
aomerk committed Jan 12, 2024
1 parent d36a70d commit f712ba5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions clients/graphql/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f712ba5

Please sign in to comment.