-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
Parse Server crash on FCM response GOAWAY #340
Labels
Comments
Thanks for opening this issue!
|
mtrezza
added
type:bug
bounty:$10
Bounty applies for fixing this issue (Parse Bounty Program)
labels
Dec 12, 2024
mtrezza
added
bounty:$20
Bounty applies for fixing this issue (Parse Bounty Program)
and removed
bounty:$10
Bounty applies for fixing this issue (Parse Bounty Program)
labels
Dec 13, 2024
3 tasks
Please report your firebase-admin version in /var/app/current/node_modules/firebase-admin/package.json. |
This has been observed with: "firebase-admin": "12.5.0" It seems to me that the issue is specific to the recently added http/2 implementation in firebase-admin SDK. |
🎉 This change has been released in version 6.8.0 |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
New Issue Checklist
Issue Description
Parse Server crashes when FCM server responds with
GOAWAY
:These errors started to appear end of Nov 2024 without a change in the push adapter version, so there has likely been a change in the FCM server behavior. However, even if the firebase-admin SDK doesn't properly handle that response, the adapter should catch this error.
From a quick look into the adapter sending logic it seems that an error should be caught if the promise is rejected:
parse-server-push-adapter/src/FCM.js
Lines 141 to 145 in 5409e48
However, it seems that the FCM client has a bug and doesn't handle the
GOAWAY
response properly, i.e. throwing an error instead of rejecting a promise, so that exception propagates all the way to the server. See also firebase/firebase-admin-node#2789.Steps to reproduce
This issue occurs on network error events, such as
GOAWAY
orECONNRESET
.Actual Outcome
Parse Server crashes.
Expected Outcome
Parse Server should handle the error gracefully, log an error and not crash.
Workaround
Add a general exception handler to the Node process.
Environment
Client
6.7.0
Server
7.3.0
The text was updated successfully, but these errors were encountered: