Not implemented on refine-supabase data provider

useApiUrl()
2 Replies
kapa.ai
kapa.ai2w ago
Hi @tingadev. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- It appears you're encountering an issue with the useApiUrl() hook when using the Supabase data provider in refine. This is actually an expected behavior. According to the knowledge sources, the getApiUrl method (which is used by the useApiUrl hook) is not implemented in the Supabase data provider. When you try to use this hook with the Supabase data provider, you'll get an error message: "Not implemented on refine-supabase data provider." This is explicitly mentioned in the Supabase data provider implementation:
getApiUrl: () => {
throw Error("Not implemented on refine-supabase data provider.");
},
getApiUrl: () => {
throw Error("Not implemented on refine-supabase data provider.");
},
Setting Up the Client App > Exploring the App The reason for this is that Supabase works differently from traditional REST APIs. Supabase is a backend-as-a-service that uses its own client to communicate with the database, rather than making direct HTTP requests to an API URL. If you need to use custom endpoints or make custom requests with Supabase, you should use the Supabase client directly or consider implementing a custom data provider that extends the Supabase data provider with your specific needs. For standard CRUD operations, you can continue using the other methods provided by the Supabase data provider such as getList(), getOne(), create(), update(), etc., which are fully implemented. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai2w ago
<@761921731505946634> Kapa.ai is still learning and improving, please let me know how I did by reacting below.

Did you find this page helpful?