firebase-admin-node icon indicating copy to clipboard operation
firebase-admin-node copied to clipboard

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

Open dandv opened this issue 1 year ago • 4 comments

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,

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?

dandv avatar Oct 21 '24 07:10 dandv

Assigning @wu-hui as I don't have any special knowledge of this issue, other than having looked into one of the "NOT FOUND" issues linked to.

dconeybe avatar Oct 21 '24 14:10 dconeybe

Thanks a ton @dandv for bringing this up. As a new user, I was stuck for 3 hours trying to figure out this error message. Tons of confusing information on the web on how to just get a simple db write to work but turns out I just wasn't supposed to rename my database on setup.

mrmuffyman avatar Nov 02 '24 01:11 mrmuffyman

Yes please. I've followed and refollowed the examples and cannot get a simple write (or read) to work, and this opaque error message is maddening. I've tried all the fixes people have mentioned.

dails08 avatar Jul 05 '25 17:07 dails08

As a workaround, could you fix the issue by setting the databaseId?

getFirestore(app: FirebaseApp, databaseId: string);

(or see: https://github.com/firebase/firebase-admin-node/issues/2563#issuecomment-2994418683)

lahirumaramba avatar Jul 07 '25 18:07 lahirumaramba