Skip to content

Edge Function Invocation Timeout

Application Error

The maximum duration for an Edge Function execution is 30 seconds, otherwise the request will time out. This is an application error.


504: Gateway Timeout
Code: EDGE_FUNCTION_INVOCATION_TIMEOUT

Troubleshoot

  • A common cause for this issue is when the application contains an unhandled exception. Check the application logs, which can be found at the host URL under the /_logs path, for example:
    https://my-deployment-my-username.vercel.app/_logs