Skip to content

fix(fcm): Converting unexpected gapic runtime errors to FirebaseError #509

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

Merged
merged 1 commit into from
Dec 4, 2020

Conversation

hiranya911
Copy link
Contributor

@hiranya911 hiranya911 commented Dec 2, 2020

The googleapiclient occasionally raises low-level runtime errors, which are currently not handled in the FCM implementation. These exceptions are directly exposed to the user, who typically only expect to handle instances of FirebaseError. This PR makes sure our FCM implementation handles all exceptions raised by googleapiclient, and they are correctly mapped to instances of FirebaseError.

Resolves #506

RELEASE NOTE: Correctly handling low-level runtime errors raised by the googleapiclient package while sending batch requests.

Copy link
Member

@lahirumaramba lahirumaramba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
LGTM!

@hiranya911 hiranya911 merged commit 273b058 into master Dec 4, 2020
@hiranya911 hiranya911 deleted the hkj-gapic-errors branch December 4, 2020 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

exceptions.FirebaseError does not catch BrokenPipeError
2 participants