Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Request throttled at the client by AdaptiveThrottler

I'm trying to initialize a native firestore project on my local machine with CLI.
It always fails  at this point:

 

? What file should be used for Firestore indexes? firestore.indexes.json

Error: Error fetching Firestore indexes

 

It seems to be a problem with the indexes. When trying to view the indexes of firestore in the Google Cloud Console i get the error "Indexes couldn't be loaded: Request throttled at the client by AdaptiveThrottler."

Same happens on a different machine in a different Network. Also I didn't read or write a lot today so there's no reason to throttle anything.

Solved Solved
0 4 1,443
1 ACCEPTED SOLUTION

4 REPLIES 4

The error message "Indexes couldn't be loaded: Request throttled at the client by AdaptiveThrottler" indicates that your request to the Firestore service has been throttled. Throttling is a mechanism that the Firestore service uses to protect the system from being overwhelmed by too many requests. This can occur even if you haven't been reading or writing a lot of data.

Here are a few things you can try to resolve this issue:

  1. Check Firestore Indexes: If the indexes file firestore.indexes.json exists, check if it's correctly formatted. The Firestore indexes file should be a valid JSON document. It should look something like this:
{
"indexes": [
{
"collectionId": "myCollection",
"fields": [
{ "fieldPath": "field1", "order": "ASCENDING" },
{ "fieldPath": "field2", "order": "DESCENDING" }
]
}
],
"fieldOverrides": [
{
"collectionGroup": "myCollection",
"fieldPath": "field1",
"indexes": [
{ "order": "ASCENDING", "scope": "COLLECTION" },
{ "arrayConfig": "CONTAINS", "scope": "COLLECTION" }
]
}
]
}

If there's a problem with the formatting, fix it before retrying the command.

  1. Check Firestore Quotas: Even though you may not have been reading or writing a lot today, it might be worth checking your Firestore usage to ensure you haven't exceeded any quotas. Firestore has both free and paid quotas, and exceeding these can cause operations to be throttled or fail. You can check your usage in the Google Cloud Console.

  2. Check Network Issues: You mentioned that the same issue occurs on a different machine in a different network, which suggests that the problem might not be related to your local network. However, it may be worthwhile to check for any network issues that could be causing the problem.

  3. Check Firestore Service Status: Check the status of the Firestore service in the Google Cloud Status Dashboard to see if there are any ongoing incidents that might be causing the problem.

This is happening to us tonight. Anything change on google's end?

Same here!