© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•5mo ago•
2 replies
MyLizard

Debug edge function trigger on cli

I'm trying to trigger a local (cli) edge function using a database webhook trigger, and hope to use the database NEW (payload.record) values inside the edge function.

For the moment, I just want to debug the connection and validate what the webhook sent to the edge function. So I have an edge function that just returns the payload sent by the webhook as a 200 response.

How do I capture this response when called from the webhook (not from the CLI itself)?

One thing that makes me suspicious that it'll work is that the webhook created by the Supabase dashboard doesn't show a payload at all:

create trigger test_trigger after
insert
on
public.ios_apps for each row execute function supabase_functions.http_request('http://127.0.0.1:54321/functions/v1/test_trigger',
'POST',
'{"Content-type":"application/json","Authorization":"Bearer xxxx"}',
'{}',
'5000');
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Edge function <> Trigger
SupabaseSSupabase / help-and-questions
13mo ago
Trigger edge function on insert
SupabaseSSupabase / help-and-questions
4y ago
Trigger edge function - find caller location
SupabaseSSupabase / help-and-questions
3mo ago
Calling edge function from database trigger
SupabaseSSupabase / help-and-questions
13mo ago