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

オープン
#2,732 コメント 4 件 リアクション 5 件 担当者 1 名 @wu-hui が担当を希望しています GitHub で見る
主要言語
TypeScript
スター
1.7k
フォーク
419
平均マージ
3日 10時間
マージ済み PR(30日)
16

説明

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?

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。