-
-
Notifications
You must be signed in to change notification settings - Fork 322
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
Realtime event broadcasting through REST calls does not work #774
Comments
Hi would it be possible to provide some logs from the container |
Yes of course, these are the logs that appear when attempting to send the event. 2024-01-09 10:32:15 13:32:15.692 [debug] QUERY OK source="extensions" db=0.5ms idle=386.7ms
2024-01-09 10:32:15 SELECT e0."id", e0."type", e0."settings", e0."tenant_external_id", e0."inserted_at", e0."updated_at", e0."tenant_external_id" FROM "extensions" AS e0 WHERE (e0."tenant_external_id" = $1) ORDER BY e0."tenant_external_id" ["realtime-dev"]
2024-01-09 10:32:15 13:32:15.693 project=realtime-dev [info] Billing metrics: [:realtime, :connections]
2024-01-09 10:32:20 13:32:20.699 project=realtime-dev [info] Billing metrics: [:realtime, :connections]
2024-01-09 10:32:20 13:32:20.775 request_id=F6ixD-R0MPRfEjMAAAJB [info] POST /socket/api/broadcast
2024-01-09 10:32:20 13:32:20.775 request_id=F6ixD-R0MPRfEjMAAAJB [info] Sent 404 in 360µs
2024-01-09 10:32:20 13:32:20.775 request_id=F6ixD-R0MPRfEjMAAAJB [debug] Converted error Phoenix.Router.NoRouteError to 404 response
2024-01-09 10:32:25 13:32:25.702 project=realtime-dev [info] Billing metrics: [:realtime, :connections] |
@w3b6x9 could it be on the client? it's weird that it has a request going to |
@filipecabaco 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: |
The issue seems to be here in this line in realtime-js package. |
It was reported in realtime-js repo too. I fixed the bug and raised PR there (supabase/realtime-js#273) |
this has been fixed in thanks everyone for the feedback! |
Describe the bug
When attempting to send a Realtime broadcast without establishing a Web Socket connection from a backend Node application, using the documented
channel.send()
method, it returns the stringerror
without any explanation.To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect it to work or at least give an informative reason as to why it is not working.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: