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

Ouverte
#2,732 4 commentaires 5 réactions 1 personne assignée Réclamée par @wu-hui Voir sur GitHub
Langage dominant
TypeScript
Étoiles
1.7k
Forks
419
Merge moyen
3 j 10 h
PR mergées (30 j)
16

Description

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?

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.