Edge Function 404 error response

Last edited: 3/11/2026

The edge function is not recognized by Supabase

Context for the error#

If the Supabase Edge Function Runtime does not recognize the function specified in the URL endpoint:

1
https://PROJECT_REF.supabase.co/functions/v1/UNRECOGNIZED_FUNCTION_NAME

then the runtime will return a 404 error.

Solving the error#

Step 1: Identifying the error#

Inspecting the return message from the request#

When an edge function fails due to a platform 404 error, it will return the error:

1
{
2
"code": "NOT_FOUND",
3
"message": "Requested function was not found"
4
}

Inspecting the logs#

One cannot inspect the function dashboard to find platform 404 errors, instead, you must run the below query in the log explorer. Results will show all requests that reached Supabase but were rejected as unrecognizable.

1
select distinct
2
req.pathname as function_name,
3
res.status_code
4
from
5
function_edge_logs
6
cross join UNNEST(metadata) as metadata
7
cross join UNNEST(metadata.request) as req
8
cross join UNNEST(metadata.response) as res
9
where status_code = 404 and metadata.execution_id is null
10
limit 10;

Step 2: Check the function for typos#

In your code, make sure your function name doesn't have any typos, such as:

  • miscapitalization
  • em-dashes instead of dashes
  • misplaced characters
  • unnecessary slashes ///

Step 3: Try calling the function from the dashboard#

When selecting your function in the Function Dashboard, you should have the option to make a test call:

image

If the call works, consider double checking your code for typos or to see if it is overwriting the function name dynamically. Otherwise, go on to step 4.

Step 4: Redeploy the function#

If step 3 fails, it may be a sign of an internal bug and it may be necessary to redeploy your function. This can be done within the Function Dashboard under the respective function's code tab:

image

Alternatively, if you develop locally, you can redeploy the function with the Supabase CLI:

1
supabase functions deploy FUNCTION_NAME
2
3
# If you want to deploy all functions, run the `deploy` command without specifying a function name:
4
supabase functions deploy

Then write in a ticket to Supabase Support

Additional resources#