Skip to content

Realtime isn't working on local Supabase #1336

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

Open
2 tasks done
rohanrhu opened this issue Mar 27, 2025 · 10 comments
Open
2 tasks done

Realtime isn't working on local Supabase #1336

rohanrhu opened this issue Mar 27, 2025 · 10 comments
Labels
bug Something isn't working

Comments

@rohanrhu
Copy link

rohanrhu commented Mar 27, 2025

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

Realtime is completely broken on local Supabase.

It was only about supabase-swift module but now (in Supabase 2.20.5) it is erroring on Supabase Studio app too.

Please make sure that realtime Postgres changes is working with supabase-swift on local Supabase instance.

Screenshots

Image

System information

  • Supabase: v2.20.5
  • supabase-swift: v2.26.0
@rohanrhu rohanrhu added the bug Something isn't working label Mar 27, 2025
@ning-bao
Copy link

Same issue here... The container never starts😥

Image

@rohanrhu
Copy link
Author

Supabase team, please take care of this. This is a major issue.

@w3b6x9 w3b6x9 transferred this issue from supabase/supabase Mar 31, 2025
@Hallidayo
Copy link

Hi, I've moved this over to the realtime repo.

@rohanrhu
Copy link
Author

rohanrhu commented Apr 3, 2025

Any news on this? We will publish our app soon but we need Supabase's realtime feature that it is claiming it has.

@ning-bao
Copy link

ning-bao commented Apr 3, 2025 via email

@rohanrhu
Copy link
Author

rohanrhu commented Apr 3, 2025

Reinstalled Supabase it seems to be working now. Just need to migrate.

Hi @ning-bao what are your Supabase and supabase-swift versions?

@filipecabaco
Copy link
Member

Sorry for the lack of replies, just a quick FYI that I will be tackling this today

@rohanrhu
Copy link
Author

It is still not working with all the latest versions of Supabase and supabase-swift.

I'm seeing this on logs:

{
  "event_message": "15:29:17.380 project=realtime-dev external_id=realtime-dev error_code=ErrorConnectingToWebsocket [error] ErrorConnectingToWebsocket: {:error, :signature_error}",
  "id": "7ced2198-0c9e-48d6-8d79-4f84f5a30b57",
  "metadata": [
    {
      "external_id": "default",
      "project": "default"
    }
  ],
  "timestamp": 1744471757380835
}

@GustavoMartins123
Copy link

GustavoMartins123 commented Apr 12, 2025

It is still not working with all the latest versions of Supabase and supabase-swift.

I'm seeing this on logs:

{
  "event_message": "15:29:17.380 project=realtime-dev external_id=realtime-dev error_code=ErrorConnectingToWebsocket [error] ErrorConnectingToWebsocket: {:error, :signature_error}",
  "id": "7ced2198-0c9e-48d6-8d79-4f84f5a30b57",
  "metadata": [
    {
      "external_id": "default",
      "project": "default"
    }
  ],
  "timestamp": 1744471757380835
}

Probably because the jwt secret of the token you are sending is different from the jwt signature that the service is expecting. One point, if you updated the jwt secret, change the jwt secret in the tenant as well, it is in _realtime.extensions, there is the Jwt secret in the data, update it.

@rohanrhu
Copy link
Author

It is still not working with all the latest versions of Supabase and supabase-swift.
I'm seeing this on logs:
{
"event_message": "15:29:17.380 project=realtime-dev external_id=realtime-dev error_code=ErrorConnectingToWebsocket [error] ErrorConnectingToWebsocket: {:error, :signature_error}",
"id": "7ced2198-0c9e-48d6-8d79-4f84f5a30b57",
"metadata": [
{
"external_id": "default",
"project": "default"
}
],
"timestamp": 1744471757380835
}

Probably because the jwt secret of the token you are sending is different from the jwt signature that the service is expecting. One point, if you updated the jwt secret, change the jwt secret in the tenant as well, it is in _realtime.extensions, there is the Jwt secret in the data, update it.

I didn't do anything like that since the last time it was working. Postgres server doesn't allow postgres to change update on the _realtime.tenants row.

I tried rebuilding my local Supabase on Docker many times but it is not working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants