Edge Function 546 error response
Last edited: 2/6/2026
The 546 error typically indicates resource exhaustion or code issues in your Edge Function.
Common causes#
Memory or CPU limits#
Your function may have exceeded available resources. Check the resource usage metrics in your dashboard at Functions > [Your Function] > Metrics.
Event loop completion#
If logs show "Event loop completed," your function has implementation issues. Check your function code for:
- Syntax errors
- Infinite loops
- Unresolved promises
Debugging steps#
Run the function locally#
Use the Supabase CLI to run your function locally and get detailed stack traces:
1supabase functions serve your-function --debugThe local console provides full stack traces with line numbers, making it easier to identify the source of errors.
Check function logs#
Navigate to Functions > [Your Function] > Logs in the dashboard. Look for:
- Error messages
- Resource usage warnings
- Shutdown events with specific reasons
Review example implementations#
Compare your function against working examples in the Edge Functions examples repository.