Fix: n8n Gmail quota exceeded error
The Gmail node is hitting a per-minute, per-user API quota rather than your total daily allowance. Reduce request bursts with batching, pacing, and controlled retries.
Last updated: June 8, 2026 · Tested on n8n 1.x / Gmail API: June 8, 2026 · ~5 min read
Symptoms — what you're seeing
- The n8n Gmail node fails with
Forbidden - perhaps check your credentials?and a quota error. - The error names
gmail.googleapis.comand says the quota metric isTotal Query Costwith a limit ofUnits per minute per user. - The failure appears when listing Gmail threads, messages, or drafts rather than during authentication.
- A workflow that handled a large batch previously now fails on a smaller batch.
- Reconnecting the Gmail credential, creating a new Google Cloud project, or adding a Wait node does not consistently stop the error.
Why this happens
This is a Gmail API per-user, per-minute quota failure, not a credential problem. The important part of the error is Units per minute per user. Gmail is rejecting requests because the same Gmail user has consumed too much API query cost during the current minute.
The larger number shown in Google Cloud is a separate project-level or longer-window quota. It is not the same limit as the per-user, per-minute quota named in the error. A workflow can remain below the total allowance and still be rejected for sending too much query cost in a short window.
Gmail list operations are especially easy to burst. A Gmail node that lists threads, messages, or drafts can request multiple pages of results. If the node runs once for every incoming item, the request count grows with the item count. Several active executions using the same Gmail account add to the same per-user limit.
A Wait node only fixes the problem when it creates real spacing between Gmail API requests. A Wait placed after the Gmail node cannot slow down the request that already failed. A Wait inside one execution also cannot coordinate separate workflow executions using the same account.
Reconnecting the credential does not change the request pattern. Creating another Google Cloud project also does not solve a per-user limit if the requests still authenticate as the same Gmail user. The fix is to control request volume and concurrency first.
The fix, step by step
- Confirm that this is a quota error, not an authentication error. Open the failed Gmail node execution and look for
Quota exceeded,Total Query Cost, andUnits per minute per user. If those terms are present, stop rotating credentials. You are debugging request pacing. - Find every Gmail request in the workflow. Check the Gmail nodes that list threads, messages, or drafts, including nodes inside loops and branches. Count how many times each node can run for one incoming item. Also check whether another workflow uses the same Gmail account at the same time.
- Batch the input before the Gmail node. Add a Loop Over Items node before the Gmail operation and set its batch size to 1. This spaces separate workflow items. Connect the Gmail node to the loop body so one item reaches the Gmail operation on each iteration.
- Use the Wait node to pace separate Gmail operations. In the loop body, connect the Gmail node to a Wait node, then return the Wait node to the Loop Over Items node. With the loop batch size set to 1, the next item cannot reach Gmail until the Wait completes. This spaces separate executions of the Gmail node; it does not pace additional Gmail API requests that the node makes internally while paginating one operation. For list operations, narrow the Gmail search query, reduce the result window, and process smaller query ranges such as a date or label partition. If the Gmail node exposes a result limit or a setting that disables fetching all pages, use it — the exact pagination and result-limit field names can shift between n8n versions, so confirm them against your installed version.
- Prevent overlapping executions. Check the workflow's production execution settings and the trigger frequency. A schedule trigger, webhook burst, or manually started execution can overlap with the previous run. Serialize the job or add an external lock so two runs do not issue Gmail requests for the same user simultaneously.
Still stuck after 30 minutes? Book a 30-min scope call. I'll get on Zoom, look at your workflow, and either fix it on the call or scope what it'll take.
- Reduce the amount of Gmail data requested. Use the narrowest Gmail search query supported by the node, request only the operation you need, and avoid listing all threads or drafts when a known message or thread ID is available. Large result sets can cause pagination and additional API calls. When the node fetches pages internally, split the search into smaller date, label, or query ranges instead of relying on a Wait node to pace those internal requests.
- Retry only quota failures with backoff. Add an error path that waits before retrying a failed Gmail operation. Increase the delay between attempts. Do not retry immediately in a tight loop; that adds more query cost while the per-minute window is still full. Keep a maximum retry count and send failed items to an error branch for review.
- Test with the full item set. Run the workflow with the same number of items and the same trigger pattern used in production. Verify that every item reaches the intended output rather than validating only the first item. Inspect the execution timeline to confirm that Gmail requests are spread across time.
- Review Google Cloud quota metrics. In the Google Cloud project connected to n8n, open the Gmail API quota view and compare request activity with the failed execution time. The metric names and available adjustment options can vary by project configuration, so confirm the current Google Cloud Console path and whether a quota increase is even available for your project before requesting one. A quota increase is not a replacement for batching and concurrency control.
If this is the same class of short-window API failure as an OpenAI 429 rate-limit error in n8n, the pattern is the same: reduce burst size, pace requests, and retry with backoff. The quota metric and retryable status differ, but reconnecting credentials is not the fix.
Recommended loop shape: Input items -> Loop Over Items (batch size: 1) -> Gmail: one operation for one item -> Wait (pace the next operation) -> Loop Over Items -> Merge or downstream processing For paginated Gmail operations: Narrow query or date/label partition -> Gmail: limited result window -> process returned items -> next narrow query or partition Error path: Gmail error -> Wait (backoff) -> retry with a maximum attempt count -> failed-items branch
Common variations
- "I only processed a few hundred emails." The relevant measurement is not only the number of emails. Gmail query cost can include list operations, pagination, repeated searches, and requests from other active executions using the same user.
- "The Gmail node fails on list threads but not send email." Different Gmail operations consume quota differently. Listing a large result set can require several requests even when the workflow appears to have one Gmail node.
- "A Wait node is present but the error remains." Check its position. It must delay the next Gmail operation, not run only after the request that fails. It cannot pace multiple API requests made internally by one paginated Gmail operation. Then check for overlapping executions and other workflows using the same credential.
- "A new Google Cloud project did not help." The error is tied to the authenticated Gmail user and a per-minute limit. Changing the project does not reduce concurrent requests from that user.
- "The first items work and later items fail." That is consistent with a per-minute window filling during the run. Slow the loop before the limit is reached instead of waiting for the first failure.
When this isn't the issue
If the error does not contain a Gmail quota metric, use a different diagnostic path:
- Invalid or expired credentials: an authentication error without quota language points to OAuth consent, revoked access, or a credential configuration problem.
- Insufficient permissions: an operation-specific permission error can mean the OAuth scope does not allow the requested Gmail action. Check the n8n credential and the Gmail API scopes granted during authorization.
- Bad query or malformed input: a validation or invalid-argument error points to the Gmail search query, message ID, thread ID, or node parameters rather than request volume.
- One execution is healthy but scheduled runs fail: inspect concurrency and trigger frequency. A schedule or webhook can start a second execution before the first has finished. The n8n schedule trigger timezone diagnostic covers a separate trigger problem, but the execution timeline is useful for confirming when runs overlap.
Stuck on this for more than 30 minutes? Book a 30-min call. I'll get on Zoom, look at your workflow, and either fix it on the call or scope what it'll take. No upsell, no decks.
Email Basit
Related pages
Need this workflow customized or debugged? Book a 30-min scope call →
Stuck configuring this workflow?
I build and fix n8n workflows for agencies and SaaS teams. 30-minute scope call — bring the problem, leave with an estimate.