Skip to content

Fix HTTP 502 error reporting from GraphQL request#4154

Merged
mislav merged 1 commit intotrunkfrom
graphql-502-error
Aug 23, 2021
Merged

Fix HTTP 502 error reporting from GraphQL request#4154
mislav merged 1 commit intotrunkfrom
graphql-502-error

Conversation

@mislav
Copy link
Contributor

@mislav mislav commented Aug 18, 2021

Now it makes sure that the message portion will be printed to stderr when the user encounters the error.

Before:

HTTP 502:  (https://api.github.com/graphql)
. 

After:

HTTP 502: Something went wrong while executing your query. This may be the result of a timeout, or it could be a GitHub bug. Please include `...` when reporting this issue. (https://api.github.com/graphql)

Ref. #4152

Now it makes sure that the message portion will be printed to stderr
when the user encounters the error.
@mislav mislav merged commit 4a45ca6 into trunk Aug 23, 2021
@mislav mislav deleted the graphql-502-error branch August 23, 2021 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants