-
Notifications
You must be signed in to change notification settings - Fork 237
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
FR: [FB Messaging] Expose full FirebaseError #576
Comments
I'm using Firebase Auth, when it fails to verify a token, Im able to know the reason from the message, however, because the ErrorCode and Ext fields are not exposed, I'm not able to handle each case programmaticlly. So yep, it will be really helpful to expose the fields and error codes, please add the feature, thank you! |
I also have troubles with the |
@lahirumaramba I see you are most active maintainer so just wanted to ask if this is something you are considering to expose? It would be extremely useful like others mentioned already. |
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
The messaging api returns robust error codes to tell your application what went wrong with the server. This go-lang library abstracts this away and only gives you the following struct: https://github.com/firebase/firebase-admin-go/blob/v4.12.0/messaging/messaging_batch.go#L78
This makes it impossible to react to different kinds of failures when calling
sendBatch
. In my case, I want to remove invalid device tokens from my database.If the lib could return this struct (
firebase-admin-go/internal/errors.go
Line 87 in 74c9bd5
Relevant Code:
The internal library has the data structure I need, but it is in the internal library and unavailable to other modules.
The text was updated successfully, but these errors were encountered: