© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4w ago•
13 replies
Mau

Edge Function returning 401 when called outside Supabase dashboard

edge functions🟡javascript
Good afternoon! Could someone help me out?

Yesterday I was trying to implement an Edge Function to create orders in a payment gateway (ASAAS), but I keep getting a 401 response from Supabase. I removed the part of the function that connects to the gateway and tried calling just a Hello World function, but the result is the same.

Through the Supabase dashboard, I’m able to call the function successfully, but when running it locally or calling it from my UAT or production frontend, I always get a 401 — even though my frontend is sending both the token and the apiKey.
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 returning 500 when querying table (Supabase)
SupabaseSSupabase / help-and-questions
11h ago
Supabase edge function issue
SupabaseSSupabase / help-and-questions
3w ago
Edge functions 401 error flutter stripe supabase
SupabaseSSupabase / help-and-questions
3y ago
Supabase edge function time out
SupabaseSSupabase / help-and-questions
8mo ago