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

Add retry on server errror 502 #16

Open
koppor opened this issue May 17, 2024 · 2 comments
Open

Add retry on server errror 502 #16

koppor opened this issue May 17, 2024 · 2 comments

Comments

@koppor
Copy link

koppor commented May 17, 2024

In case of large projects, maven central response with 502.

See JabRef/jabref-koppor#686 for a non-MWE.

Cannot determine dependency age for "com.vladsch.flexmark:flexmark-util-html:0.64.8" and repository "MavenRepo" (reason: IOException: Response for URL https://search.maven.org/solrsearch/select?q=g%3A%22com.vladsch.flexmark%22%20AND%20a%3A%22flexmark-util-html%22 returned 502).

I think, a "simply" retry after 3 seconds should be done in the case if 502 is returned.

@f4lco
Copy link
Owner

f4lco commented May 19, 2024

Hello @koppor, thank you for your feedback. This project is accepting contributions, and your suggestion seems worthwhile. Would you feel confident implementing a retry for a status code of 502?

@koppor
Copy link
Author

koppor commented May 21, 2024

@f4lco Yeah, I feel confident. I put it on my TODO list after the (unrelated) issue openrewrite/rewrite#4054 :)

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

No branches or pull requests

2 participants