firebase / firebase-js-sdk

Firebase Javascript SDK
https://firebase.google.com/docs/web/setup
Other
4.76k stars 874 forks source link

RESOURCE_EXHAUSTED: Quota Exceeded #8318

Open mx2323 opened 2 weeks ago

mx2323 commented 2 weeks ago

Operating System

linux

Browser Version

node.js v20

Firebase SDK Version

10.9.0

Firebase SDK Product:

Firestore

Describe your project's tooling

node.js v20

Describe the problem

one of our users received the following log statement, leading to an outage for them. can someone take a look at this adn help understand what quota is being hit?

2024-06-02 23:01:05.506 MDT [2024-06-03T05:01:05.505Z] @firebase/firestore: Firestore (10.9.0): GrpcConnection RPC 'Listen' stream 0x12bcda26 error. Code: 8 Message: 8 RESOURCE_EXHAUSTED: Quota exceeded.

2024-06-02 23:01:05.507 MDT [2024-06-03T05:01:05.507Z] @firebase/firestore: Firestore (10.9.0): FirebaseError: [code=resource-exhausted]: 8 RESOURCE_EXHAUSTED: Quota exceeded.

2024-06-02 23:01:05.507 MDT [2024-06-03T05:01:05.507Z] @firebase/firestore: Firestore (10.9.0): Using maximum backoff delay to prevent overloading the backend.

Steps and code to reproduce issue

no clear recreate steps... we typically run hundreds of these types of workloads a day, so its unclear why this one in particular had this issue.

milaGGL commented 2 weeks ago

Hi @mx2323, could you please check the firebase console and google cloud console. They should have highlighted any quotas have exceeded on that specific date. "RESOURCE_EXHAUSTED" errors can be transient, caused by temporary spikes in usage. Please check with the user if the issue is consistent.

mx2323 commented 2 weeks ago

Firebase Support also said the same thing and I checked multiple times looking at those consoles and there were no quotas that were exceeded at that time, or anything unexpected usage-wise. The issue is inconsistent, and has only happened once.

is there a way to give more information on which quota was exceeded?

mx2323 commented 1 day ago

any updates?

milaGGL commented 12 hours ago

Hi @mx2323, I have asked internally with the projectId you have provided with my colleague. Unfortunately, we cannot tell exactly which quota is exceeded, except it might be "Send quota limit reached".

Did this happen again?