© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•10h ago•
14 replies
Jr

Edge Function returning 500 when querying table (Supabase)

edge functions🤷other🟢SQL
Hi everyone,
I’m getting a 500 error in a Supabase Edge Function when querying a table that already exists (public.entries).

The function runs, auth is using service_role, headers are set, but it fails specifically when fetching data from the table and returns 500: Error fetching entries.

Has anyone faced this before or knows how to properly debug DB errors inside Edge Functions?
Any tips on logging or common pitfalls would help a lot.
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 401 when called outside Supabase dashboard
SupabaseSSupabase / help-and-questions
4w ago
Edge function SupabaseVectorStore 22mb
SupabaseSSupabase / help-and-questions
13mo ago
"Invalid API key" when querying from Edge Function, but not when querying directly
SupabaseSSupabase / help-and-questions
3y ago
Supabase edge function issue
SupabaseSSupabase / help-and-questions
3w ago