-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Invalid API key Double check your Supabase anon
or service_role
API key
#271
Comments
@thecode-master-sy can you share what's going on inside |
createClientComponentClient() is coming from supabase-nextjs/authhelpers package |
@w3b6x9 ![]() Library version: I followed the supabase documentation, everything is working fine including realtime websocket connection. WSS is connected with the same apikey and access token and it is receiving events. No issues at all. UPDATES: Found the bug and raised PR: PR: #273 |
@Mukhammadali For now, you can force the anon_key: |
be careful with this move as it can break Realtime Postgres Changes listening when tables have RLS enabled and policies set.
|
we're also aware of this issue. the problem here is that the |
@Mukhammadali thanks, it's a good stopgap until we decide on how we wanna do it in our API Gateway. |
this should be addressed in realtime-js v2.9.2. thanks for all your feedback! |
Bug report
I get this error when i am trying to use the supabase broadcast to send messages to a channel, at first it was working but as of recently i start seeing this error, how do i resolve this please.
my supabase anon key and url are loaded properly, its working for auth but for realtime it fails
how to repelicate:
const supabase = createClientComponentClient();
channel.send({ type: 'broadcast', event: 'message', payload: newMessage, })
error i am getting
{ "message": "Invalid API key", "hint": "Double check your Supabase
anonor
service_roleAPI key." }
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
System information
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: