Skip to content

🌱 When Robot API reaches a timeout, retry later. #1639

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

guettli
Copy link
Collaborator

@guettli guettli commented Jul 30, 2025

When Robot API reaches a timeout, retry later

The Robot API of Hetzner returned this:

failed to get bare metal server: Get "https://robot-ws.your-server.de/server/1234": net/http: TLS handshake timeout

We do want to retry N seconds later. Up to now the provisioning process was stopped and started from scratch.

TODO

Maybe it is best, if we join the rate-limit handling with timeout handling into one method, so that we do not have too many similar lines after each robot-api call.

But how to check for all kind of network errors (dns timeout, dns resolve failed (name to ip), network unreachable, connection refused, ....)?

@github-actions github-actions bot added size/XS Denotes a PR that changes 0-20 lines, ignoring generated files. area/code Changes made in the code directory labels Jul 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/code Changes made in the code directory size/XS Denotes a PR that changes 0-20 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant