-
Notifications
You must be signed in to change notification settings - Fork 392
Upgrade from 11.11.1 to 12.0.0 and change from sendAll to sendEach throwing errors #2418
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
Comments
Also while debugging I have noticed circular dependency at |
bump |
There were no changes to the credentials handling in v12. How do you initialize the SDK? Are you able to share some code samples with us? |
It's not with switch to v12, that upgrade gave us only deprecation message on Cleaned a lot.. but its visible from it hopefully - "working way"
and when we switch to .sendEach, we start getting that mentioned error
|
Interesting... can you try adding
|
Thank you this helped.. Before it did not help because we had bad setup of tests which I fixed with this.. Thank you.. Anyway, is there any reason why sendEach is calling RPC one by one? Instead of sendAll where it sent all at once? Its 2-2.5 times slower than sendAll :( Thank you |
The backend API that was used by (@jonathanedey FIY) |
When will |
I think it will stop working on June 20, 2024: https://firebase.google.com/support/faq/#fcm-depr-features |
any progress on this? |
Hi! |
Hey @dpereiraegoi, With the deprecation of the batch FCM backend endpoints, each message requires a request to be sent to the backend which explains the increase in threads. This is a limitation of not having a batch endpoint and is beyond the scope of this SDK which is essentially a wrapper for the REST API. If you continue to experience considerably decreased performance after upgrading to HTTP/2, I'd recommend filing a Firebase support ticket from https://firebase.google.com/support/troubleshooter/contact to share your feedback to reach the correct internal teams. |
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I've upgraded to latest version of firebase-admin and got some deprecation method messages. One of them was
sendAll
which is gonna be replaced withsendEach
. I checked interfaces and description provided in firebase-admin and it look same. But after switching to newsendEach
method I started to get errors likeRejected unknown error: {\"code\":\"app/invalid-credential\",\"message\":\"Failed to determine project ID: Error while making request: getaddrinfo ENOTFOUND metadata.google.internal. Error code: ENOTFOUND\"}
What has changed? Is there different approach to authorisation or something else needed to be changed? Is there any migration guide for upgrade from v11 to v12?
Thank you
The text was updated successfully, but these errors were encountered: