Remote server failed to handle the request, will retry in a moment
needs to be better handled
#6287
Labels
good first issue
Good for newcomers
Team:Elastic-Agent-Control-Plane
Label for the Agent Control Plane team
When trying to communicate with Fleet-Server (e.g: during enrol), Elastic-Agent might log the error
However this can be the result of 3 different HTTP status codes:
elastic-agent/internal/pkg/fleetapi/enroll_cmd.go
Lines 35 to 40 in 54932dc
Bad Gateway and Gateway Timeout are likely connectivity problems, however Service Unavailable can be a real problem with Fleet-Server.
We need to be more clear in the logs which error has happened and likely better handle them individually. E.g: Bad Gateway might be a configuration issue, while Gateway Timeout is a connectivity issue. It might not make sense to retry Bad Gateway, while Gateway Timeout should be retried with an exponential backoff.
The text was updated successfully, but these errors were encountered: