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

Open
#2,732 4 comments 5 reactions 1 assignee Claimed by @wu-hui View on GitHub
Dominant language
TypeScript
Stars
1.7k
Forks
419
Avg merge
3d 10h
Merged PRs (30d)
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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.