Supabase Edge Function Fails

Hello everyone,

I’m currently stuck with Supabase Edge Functions and could really use some help.

My goal is to create an Edge Function that allows Supabase administrators to create users, and then automatically send those users an email so they can set/change their password. These users are not standard app users, they need special access, so they can’t sign up through the normal signup flow.

I tried implementing this with an Edge Function, but I can’t get it to work.

I then tried completly different functions, including replicating exactly the example from the WeWeb documentation here:
https://docs.weweb.io/workflows/actions/supabase/invoke-edge-function.html

Unfortunately, none of my Edge Functions work so far. Every time I try to call an Edge Function from WeWeb, I get an error:

“Failed to send a request to the Edge Function”

Has anyone encountered this issue before, or does anyone know what could cause this error (permissions, headers, deployment, Supabase config, etc.)?

Thanks a lot in advance for your help!

Try to call Edge Function with Rest Api. Maybe this will help:

1 Like