Google sheets add new row raises RATE_LIMIT_EXCEEDED

Hello Pipedream experts,
I am using the built-in step to add a row to a google sheet.
Works fine most of the time, but every day I get some RATE_LIMIT_EXCEEDED errors.
The error (seel below) says, that a limit of 300 write requests per minute (!) has been exceeded. But this cannot be that case, I checked the sheet and it has around 250 lines added PER DAY not per minute.
Is this a known error?
What can I do?
I tried to find (within my google account) some usage analytics, but could not find. I did not create a “google development project”, the error has this: project_number:342853642011
What is this number?
Or maybe this is a pipedream-owned API project and this reaches the limit (because of usage by other workflows?)
Thank you for your support,
Johannes

Error — {“error”:{“code”:429,“message”:“Quota exceeded for quota metric ‘Write requests’ and limit ‘Write requests per minute’ of service ‘sheets.googleapis.com’ for consumer ‘project_number:342853642011’.”,“status”:“RESOURCE_EXHAUSTED”,“details”:[{“@type”:“type.googleapis.com/google.rpc.ErrorInfo",“reason”:“RATE_LIMIT_EXCEEDED”,“domain”:“googleapis.com”,“metadata”:{“service”:“sheets.googleapis.com”,“quota_limit_value”:“300”,“consumer”:“projects/342853642011”,“quota_limit”:“WriteRequestsPerMinutePerProject”,“quota_location”:“global”,“quota_metric”:“sheets.googleapis.com/write_requests”}},{“@type”:“type.googleapis.com/google.rpc.Help”,“links”:[{“description”:"Request a higher quota limit.”,“url”:“://cloud.google.com/docs/quota#requesting_higher_quota”}]}]}}

Hi @johannes1

Great question, I recommend using the throttling settings of your workflow to guarantee that bursts of events don’t cause the workflow to exceed the rate limit on the API you’re integrating with.

For example, you can set your throttle to 59 events per minute to be safe.

I’m surprised the error message is saying 300 requests per minute, in my experience Google Sheets throttles writes to 60 per minute.

Hello @pierce
I do not think that the problem is the number of write requests from my workflows. As described, my workflow adds around 250 entries to the google sheet PER DAY on average. this happens between 10am and 7pm. It is the count per day, not per minute. So I wonder how a rate limit of 300 per minute can be reached, or even a limit of 60, as you mention.
I rather thought that in the background, a collective API from pipedream to google sheets might be used (by different workflows/users) and this causes the limit to be reached. Can you confirm this?
thank you,
Johannes

@johannes1 your suspicion may be correct, that the rate limit was applied to the Pipedream Google Sheets app. We are investigating now and have requested a quota increase from Google in the meantime.

FYI our quota increase was approved – please let us know if you run into this issue again!

1 Like

Hi @danny
I did not get any write request errors due to quota limits any more.
BUT today I received two erros for Read requests to Google Sheets:

Error — Quota exceeded for quota metric ‘Read requests’ and limit ‘Read requests per minute per user’ of service ‘sheets.googleapis.com’ for consumer ‘project_number:342853642011’.

Could you check the quota limit there, and eventually increase this as well?
I am not sure why I get a read request error because I do not read, I just add rows with my workflows.

Thank you,
Johannes

Hi @danny the google sheets quota problem is probably back, i had many of those errords today at around 1pm CET. Errors occur when calling “add one row” to google sheet - raises “Resource exhausted”, see screenshot. I am not sure wether this is the same as the quota issue or something new.

Or was there a general issue on the pipedream platform today around 1pm? I got so many “timeout”, “out of memory” and “resource exhausted” errors.

Thanks,
Johannes

Hm, interesting. I don’t believe we had any incidents on 2/27, but there could have been transient issues with Google’s API perhaps. Are you still getting these errors? Can you send a screenshot?

Hello @danny today again many errors “resource exhausted” with google API to add one row to a g-sheet. see this screenshot.
can you do something about this? It gets more and more unreliable.
this time itr was a big order with 65 line items coming in, and then it hit the google api almost in parallel with around 30 requests in the same second. Can this be a problem?

→ update: I had another incoming order with 113 items, a good test case. without throttling and unlimited concurrency, it hit the limits every time i tested it.
Now with throttling to 1 every 3 secs and a concurrency of 3 it finished successfully. I hope this solves the issue.

Thank you,
Johannes

1 Like

Ah that’s good to know – thanks for the update!