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 to routes #10

Open
svenstaro opened this issue Jun 29, 2021 · 1 comment
Open

Add retry to routes #10

svenstaro opened this issue Jun 29, 2021 · 1 comment

Comments

@svenstaro
Copy link

Currently, the Hetzner Cloud API is sadly sometimes quite flaky and will at times throw around random errors. Hetzner themselves apparently know this and have implemented retry measures in some parts of their Terraform provider and Go client library.

We hit these problems very often using your library and I think it would be a good idea to add retry support into the library directly. I'm not exactly sure how to implement this given that you use the OpenAPI generator, however.

@HenningHolmDE
Copy link
Owner

Thanks for reporting the issue, @svenstaro !

Did you notice any regularity in when you get the errors? Actually getting the errors would of course make implementing the retry support a lot easier.

Using the generator is probably no serious obstacle here as the templates can be modified. So if you already have an idea on how to implement this for any of the API functions, feel free to post it here and I can adapt this into the templates.

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