1

We have a Google Sheet (implementing Import Range) randomly giving these errors in the developer console:

Failed to load resource: the server responded with a status of 429 ()

When this occurs, the sheet loads in HtmlView and is mostly inaccessible. Are there any access rate limits that could be causing this, or is it just a server issue?

Most of the time it seems that the sheet is stable.

0

The HTTP status of 429 means “Too many requests.”

As explained here, the HTTP status code means too many requests are being made:

The user has sent too many requests in a given amount of time ("rate limiting").

Then checking usage limits on Google Sheets in the official Google guide states:

Usage Limits

This version of the Google Sheets API has a limit of 500 requests per 100 seconds per project, and 100 requests per 100 seconds per user. Limits for reads and writes are tracked separately. There is no daily usage limit.

To view or change usage limits for your project, or to request an increase to your quota, do the following:

  1. If you don't already have a billing account for your project, then create one.
  2. Visit the Enabled APIs page of the API library in the API Console, and select an API from the list.
  3. To view and change quota-related settings, select Quotas. To view usage statistics, select Usage.

So your choice seems to be is to increase the limits via upgrading your account. Or—depending on usage—you can limit interactions on your sheet in your application by only requesting data remotely when needed.

This all depends on your project, but many APIs have limits like this and the best/simplest way around them is to store the data locally in your app—or a custom API—so you cache the data locally and interact with the data locally and then only refresh from the API at predetermined intervals/methods that would avoid triggering 429 error.

1
  • We don't use the Sheets API at all in the sheet.
    – User86530
    Jun 27 '19 at 18:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.