-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[github] requests.exceptions.HTTPError: 502 Server Error: Bad Gateway #471
Comments
I have retried it this morning with a good fiber connection and no issue until the end of the rate limit (5000 requests). So it seems that the Bad Gateway error could appear when the GItHub servers are overloaded. My yesterday testing was done using a mobile connection. |
In this morning, just 2 hours later, and using a good connection also, the same error appeared. |
Hi @acs thank you for reporting this bug. I'm currently performing some tests but it seems that the error is gone if you replace the code at: https://github.com/chaoss/grimoirelab-perceval/blob/master/perceval/backends/core/github.py#L485 with
|
Great news! I will try to check it asap. Thanks @valeriocos Would this code be included in the next release of perceval? |
I'm going to close this since seems to be a problem with GitHub. I think we cannot do more at this moment. |
Trying to get the github data from Apache Spark project I have found the same exception in two different executions. The command used was:
The first one:
2019-01-14 17:26:42,127 Error feeding ocean from github (https://github.com/apache/spark): 502 Server Error: Bad Gateway for url: https://api.github.com/repositories/17165658/issues?state=all&per_page=100&direction=asc&sort=updated&requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url: https://api.github.com/repositories/17165658/issues?state=all&per_page=100&direction=asc&sort=updated&since=1970-01-01T00%3A00%3A00%2B00%3A00&page=5&state=all&per_page=100&direction=asc&sort=updated&since=1970-01-01T00%3A00%3A00%2B00%3A00since=1970-01-01T00%3A00%3A00%2B00%3A00&page=7&state=all&per_page=100&direction=asc&sort=updated&since=1970-01-01T00%3A00%3A00%2B00%3A00
And the second one:
requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url: https://api.github.com/repositories/17165658/issues?state=all&per_page=100&direction=asc&sort=updated&since=1970-01-01T00%3A00%3A00%2B00%3A00&page=5&state=all&per_page=100&direction=asc&sort=updated&since=1970-01-01T00%3A00%3A00%2B00%3A00
Both of them are getting the list issues. It is an error internal to GitHub (https://tools.ietf.org/html/rfc7231#section-6.6.3) so probably the only solution is to retry the request until it works or until it is clear it won't work (3 requests failed for example).
I have retried exactly the same queries from the web browser and both of them work. So it is an intermittent issue.
The text was updated successfully, but these errors were encountered: