Skip to content
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

Retry on some FCM v1 errors occur. #71

Open
fujiwara opened this issue Apr 4, 2024 · 0 comments
Open

Retry on some FCM v1 errors occur. #71

fujiwara opened this issue Apr 4, 2024 · 0 comments

Comments

@fujiwara
Copy link
Contributor

fujiwara commented Apr 4, 2024

Gunfish doesn't retry when some FCM v1 errors occur.

When FCM returns INTERNAL or UNAVAILABLE error, it should be retried.
https://firebase.google.com/docs/cloud-messaging/http-server-ref?hl=ja#error-codes

{
    "file": "/home/runner/work/Gunfish/Gunfish/supervisor.go",
    "level": "error",
    "line": "432",
    "msg": "Unknown error message: INTERNAL",
    "res_queue_size": 0,
    "resend_cnt": 0,
    "resp_uid": "6d9db339-bcdf-4db5-9b64-14b671e978ec",
    "response_time": 5.047958725,
    "time": "2024-03-26T13:07:19Z",
    "token": "xxx",
    "type": "worker",
    "worker_id": 61
}
@fujiwara fujiwara changed the title Retry on some FCM v1 errors occurred. Retry on some FCM v1 errors occur. Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant