Uh oh!
There was an error while loading. Please reload this page.
8 - Provide clearer error for non-200 status codes without JSON - #19
Conversation
fb52857 to
0babf94Compare…about the status code if it was not 200 accounting for both paths where there might be a non-200 response
0babf94 to
9835de6Compareerutherford
commented
Sep 11, 2018
@dahernan is it possible you'd be able to take a look at this? I'm definitely open to suggestions on the PR, I was trying to maintain the current behavior, but account for errors where there isn't a JSON response with as little modification as possible. |
dahernan
commented
Sep 11, 2018
Sorry I have no context for this, maybe @matryer could help |
matryer
commented
Sep 11, 2018
via email
erutherford
commented
Sep 11, 2018
I went based of the last couple merges, sorry for the incorrect ping. Thanks for checking out the PR and providing this client. |
| "github.com/pkg/errors" | ||
| ) | ||
| const errorNon200Template = "graphql: server returned a non-200 status code: %v" |
There was a problem hiding this comment.
This feels like an unnecessary constant to me. Let's just duplicate the string for now?
There was a problem hiding this comment.
thanks @matryer, I pulled the constant and duplicated the string.
erutherford
commented
Oct 15, 2018
Looks like it's failing because of this, updating my branch. |
matryer
commented
Oct 16, 2018
Thanks @erutherford, nice work. |
What
#8