© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•2y ago•
4 replies
Gary

Should RPC work locally?

create or replace function hello_world() -- 1
returns text -- 2
language sql -- 3
as $$  -- 4
  select 'hello world';  -- 5
$$; --6
create or replace function hello_world() -- 1
returns text -- 2
language sql -- 3
as $$  -- 4
  select 'hello world';  -- 5
$$; --6


Trying to create this locally fails. If I check the logs I get:

{
  "code": 500,
  "message": "An error has occurred: fetch failed",
  "requestId": "61e1fb0f-d468-47ea-8fe5-8ba284a778c4"
}
{
  "code": 500,
  "message": "An error has occurred: fetch failed",
  "requestId": "61e1fb0f-d468-47ea-8fe5-8ba284a778c4"
}


I have tested it in my live project and it works.

Maybe you can't run these locally?
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

RPC function doesn't work
SupabaseSSupabase / help-and-questions
4y ago
Realtime doesn't work locally.
SupabaseSSupabase / help-and-questions
4y ago
Do trigger functions work locally?
SupabaseSSupabase / help-and-questions
4y ago
service_role key not working locally on rpc call
SupabaseSSupabase / help-and-questions
3y ago