Realtime Postgres Changes Not Received for async_jobs Updates Despite Correct Setup #35147
Replies: 1 comment 2 replies
|
Try the dashboard realtime monitor to confirm your instance is working correctly. You can impersonate a user to verify even that is working. |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi Supabase Community,
I'm encountering an issue where my client application is not receiving Realtime postgres_changes events for updates to my public.async_jobs table, despite seemingly correct configuration and extensive troubleshooting.
Goal:
I have a background job system using an Edge Function -> AWS Lambda. The Lambda updates the status and results (result_data JSONB column) of a job in the async_jobs table. My React Native application needs to listen for UPDATE events on this table (specifically for a given job ID) to notify the user when the job is complete or failed.
Setup:
Client Code (Intended Implementation):
My client code aims to subscribe like this (simplified):
The Problem:
The client successfully subscribes (the "Successfully subscribed..." log appears), and the backend Lambda function correctly updates the async_jobs row in the database (verified via Lambda logs and checking the table data directly). However, the (payload) => { ... } callback in the .on() listener never fires. No payload is received by the client.
Troubleshooting Steps Taken:
Conclusion:
Despite following the documentation examples and trying various configurations, I haven't been able to receive postgres_changes events, even when manually triggering changes on a different table (conversation_messages). The client subscribes successfully, RLS seems correct (and was disabled for testing), the table is in the publication, and the database updates are confirmed.
I'm currently stuck on why the events aren't being delivered. Is there any other configuration setting I might be overlooking, a common pitfall I've missed, or any further diagnostic steps I could take on the client or backend to pinpoint the cause? Any insights or suggestions would be greatly appreciated!
Thanks for any help!
All reactions