Should the internal.HTTPClient
retry when Google's servers return 502 default for the Messaging Endpoint?
#640
Labels
internal.HTTPClient
retry when Google's servers return 502 default for the Messaging Endpoint?
#640
When Google's servers reponse 502 for the Messaging Endpoint(https://fcm.googleapis.com/v1) requests, the response body has been read in advance and the
RetryConfig
can catch underlying network errors, as the following comment says,But for the choice of most users, the default retry config
WithDefaultRetryConfig
only retries whenhttp.StatusServiceUnavailable
503 occurred.And it is true that Google often returns 502 for the Messaging Endpoint requests as shown below,
The text was updated successfully, but these errors were encountered: