firebase / firebase/firebase-admin-java
Exception missing in response for failed ones.
- Vorherrschende Sprache
- Java
- Sterne
- 620
- Forks
- 305
- Ø Merge
- 3 Std. 23 Min.
- Gemergte PRs (30 T.)
- 1
Beschreibung
When large number of failures, no exception details present in response but only error count. The count of exceptions in response do not match failed count. That means for some failures exception objects are missing.
Documentation https://firebase.google.com/docs/reference/admin/error-handling says "Every API error is guaranteed to contain an error code and an error message" which is not the case here.
Notification is send to registration tokens of almost 2.3 million. Almost 2.2 million are success. For around 88k no exception present in response. I use firebase admin SDK 9.1.1. The method used is sendMulticast().
Sample usage:
BatchResponse response = fcmMessaging.sendMulticast(multiCastMessage, dryRun);
Beitragsleitfaden
Rechercherichtung
Beginne am Einstiegspunkt sendMulticast() und untersuche, wie BatchResponse fehlgeschlagene Registrierungstokens darstellt, wobei das gemeldete Verhalten von Firebase Admin SDK 9.1.1 und die verlinkte Dokumentation zur Fehlerbehandlung als Kontext dienen. Reproduziere den Fall mit einem großen Batch, wenn möglich, und überprüfe anschließend, dass jedes fehlgeschlagene Token eine Exception hat und dass die Anzahl der Exceptions und der Fehler übereinstimmt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java
- Bereich
- api
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100