Skip to content

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