Skip to content
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

artifact client: retry on non-JSON response #1721

Merged
merged 2 commits into from
Apr 19, 2024

Conversation

robherley
Copy link
Contributor

@robherley robherley commented Apr 19, 2024

Occasionally the upstream artifact client may not respond in time (or other intermittent issues) so the GLB will respond with a 502 and a generic HTML response. We currently throw for non-JSON data as a response.

This tiny change allows us to retry in that scenario.

e.g.

@robherley robherley marked this pull request as ready for review April 19, 2024 15:17
@robherley robherley requested a review from a team as a code owner April 19, 2024 15:17
@robherley robherley merged commit eb1cb36 into main Apr 19, 2024
14 checks passed
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.

None yet

2 participants