© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
1 reply
Random Int

Serving Edge Functions locally, can't find database function

Every time I serve and test my edge function locally I get an error calling
supabase.rpc()
supabase.rpc()
which says
Could not find the function public.my_function(...
Could not find the function public.my_function(...
. I have no problem when deployed. I tried using
supabase db pull
supabase db pull
thinking it was a caching issue (?) Does anyone know how to get database functions working while testing edge functions locally?

This is what the error message I log to the console looks like:
DEBUG starting new connection: http://kong:8000/
[Info] {
  code: "PGRST202",
  details: "Searched for the function public.my_func with parameters param_1, param_2"... 115 more characters,
  hint: null,
  message: "Could not find the function public.my_func(param_1, param_2"... 28 more characters
}
DEBUG starting new connection: http://kong:8000/
[Info] {
  code: "PGRST202",
  details: "Searched for the function public.my_func with parameters param_1, param_2"... 115 more characters,
  hint: null,
  message: "Could not find the function public.my_func(param_1, param_2"... 28 more characters
}
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

Database Functions vs Edge Functions
SupabaseSSupabase / help-and-questions
5mo ago
Can't deploy edge functions
SupabaseSSupabase / help-and-questions
3y ago
Can't use createClient in Edge Function (can't find tslib)
SupabaseSSupabase / help-and-questions
4mo ago
Call Edge Functions from Database Functions
SupabaseSSupabase / help-and-questions
7mo ago