Skip to content

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