Closed castor-rtzr closed 2 years ago
I found a few problems with this issue:
502 is not safe for retries. See https://cloud.google.com/apis/design/errors#retrying_errors
@chong-shao do you know what the above error is about?
We saw a similar error reported previously https://github.com/firebase/firebase-admin-python/issues/493 and the decision there is not to add code in Admin SDK to retry on this. From the previous discussion, customer can add retry logic on their end for this.
502 errors seems to be transient and rare, and is not related to the FCM backend.
Thanks for the detailed reply. I will close this issue.
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
Recently I received BadGateway(502) error often when I send push messages using
fcmClient
.The error message says
<p>Please try again in 30 seconds. <ins>That’s all we know.</ins>
In my opinion
BadGatway(502) error
need to be retry.Relevant Code:
https://github.com/firebase/firebase-admin-go/blob/241c29308e3ea64fff9edc8e848bffba9e1ec07a/internal/http_client.go#L82
Want to change.