apps/docs/content/troubleshooting/edge-function-error-rate-limit-exceeded-for-trace-1094d3.mdx
If you are observing a RateLimitError: "Rate limit exceeded for trace ..." error when invoking Edge Functions, it typically indicates that a single function execution is triggering too many downstream calls simultaneously.
Why Does This Happen?
supabase.functions.invoke() calls initiated from the same parent execution share a single Trace ID. These calls draw from a specific per-trace safety budget rather than the total project-level capacity. If the volume of calls is too high, the budget is exhausted and subsequent calls are throttled.How to Resolve This Issue:
invoke() calls (e.g., hundreds of milliseconds) in the producer function to stay within the trace budget.You can monitor these errors by visiting the logs explorer to identify which executions are exceeding their trace budget.
For more details on how recursive invocations and per-trace rate limiting work, see the recursive functions guide: Recursive Functions — What gets rate limited.