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() which says Could not find the function public.my_function(.... I have no problem when deployed. I tried using 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
}
Was this page helpful?