firebase / firebase/firebase-admin-node

Make the "5 NOT FOUND" / "Exception occurred in retry method that was not classified as transient" error message specific and useful

Offen
#2,732 4 Kommentare 5 Reaktionen 1 zugewiesene Person Beansprucht von @wu-hui Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
1.7k
Forks
419
Ø Merge
3 T. 10 Std.
Gemergte PRs (30 T.)
16

Beschreibung

I'm raising this specific issue because this "5 NOT FOUND" error is uncharacteristically (for a Google API) unhelpful, confusing and cryptic.

When it comes from using Firestore, it can mean that,
* [the collection/document/subcollection//... path sequence wasn't respected](https://stackoverflow.com/questions/75251053/firestore-exception-occurred-in-retry-method-that-was-not-classified-as-transien)
* [Firestore was not properly set up from the console](https://github.com/firebase/firebase-admin-node/issues/2563#issuecomment-2123199809)
* [the `(default)` database was deleted](https://github.com/firebase/firebase-admin-node/issues/2563#issuecomment-2227108636)
* [the custom database ID wasn't specified](https://github.com/firebase/firebase-admin-node/issues/2563#issuecomment-2228809974)
* [a cloud function was idle for a long time](https://github.com/firebase/firebase-functions/issues/536#issuecomment-514938881)

Also, its `note` field in my case was set to "Exception occurred in retry method that was not classified as transient", but the `FirebaseFirestoreError` type doesn't include a `.note` field. (`import { FirebaseFirestoreError } from 'firebase-admin/firestore';`). There was also an empty `details` field that was not defined in `FirebaseFirestoreError`.

@dconeybe any chance for this error message to received some TLC?

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.