© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•13mo ago•
8 replies
patryk

Calling supabaseClient.rpc() does nothing? How to debug?

This is the code:
const { data: userAvailableAccounts } = useQuery({
        queryKey: ['userAccounts'],
        staleTime: Infinity,
        gcTime: 0,
        queryFn: async () => {
            console.log('refetching')
            console.log(supabaseClient)
            const result = await supabaseClient.rpc('get_accounts')
            console.log(result)
        }
    })
const { data: userAvailableAccounts } = useQuery({
        queryKey: ['userAccounts'],
        staleTime: Infinity,
        gcTime: 0,
        queryFn: async () => {
            console.log('refetching')
            console.log(supabaseClient)
            const result = await supabaseClient.rpc('get_accounts')
            console.log(result)
        }
    })

And here is the result on a screenshot. As you can see, nothing is being console.logged after calling supabaseClient.rpc('get_accounts'). Actually nothing happens - no data, no error
image.png
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

How to debug rpc function?
SupabaseSSupabase / help-and-questions
3y ago
Error when calling RPC with function name
SupabaseSSupabase / help-and-questions
4y ago
Storage exceeded - how to debug?
SupabaseSSupabase / help-and-questions
3w ago
How to debug auth requests?
SupabaseSSupabase / help-and-questions
4y ago