-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running .rpc() results in missing API key #24
Comments
Found the solution: To run a query via the httpx client successfully, we need to add an additional apikey header with the supabase key as value. You could fix that within the auth method in the PostgrestClient class. Workaround manipulating the session headers:
|
thanks @kay-es! I think we should re-open this issue. still happening on new versions. |
Hi, yes this issue still happening. |
Edit: i read wrong, i thought this was on the postgrest-py repo |
Bug report
Describe the bug
Running the .rpc() method to call a stored procedure ends up with a response containing the following message:
No API key found in request
Using .table() with works fine.
Additional context
I'm not sure if this is a bug or if i miss a place passing the required api key but according to the documentation and looking into the code, there is no place where i should pass a key additionally to the supabase_key
The text was updated successfully, but these errors were encountered: