Hi,
Im using the Tasks API to create a dynamic tasks list. I get an error for a quota being exceeded after around 100 tasks.insert() calls.
- I'm far below the quotas stated of 50k per day, and 60M per minute per user.
- The runtime for the function is about 45 seconds.
- tasks.item.length returns the correct number of tasks in the list until reaching 20, at which point adding new tasks will not increase the length, it seems to be capped at 20 for some reason. When checking the tasks list, there is clearly tasks being added and more than 20.
- Some calls in between error messages go through, but often about 15% of calls fail in the batch of ~115
- The tasks have three strings as fields
- There is no other call to any function being made in the loop to call tasks.insert() where the error is being sent from
- Setting a delay of .5 seconds fixes the issue
- I only recently connected the Apps Script to my Google Cloud project
- I only recently activated my full account on Google Cloud
- There are no listed quotas that are being exceeded or even used besides the Google Tasks API listed in API's and Services
What quota am I hitting?
Error:
Error details: {"details":{"errors":[{"reason":"quotaExceeded","message":"Quota Exceeded","domain":"usageLimits"}],"code":403,"message":"Quota Exceeded"},"name":"GoogleJsonResponseException"}