Skip to content

Postgres Changes channel / real-time not working #179

@RyanTippsTX

Description

@RyanTippsTX

Bug report

Describe the bug

Using the new supabase-js 2.0.0-rc.3, and following the guide exactly, the channel is left undefined AND no payload is ever delivered when the I insert/update a row in the DB.

I have tried:

  • created a new Supabase DB today, with one public table, enabled Realtime on the table, did not enable RLS
  • verified my pub anon key & url is correct
  • verified I have 2.0.0-rc.3 in my package.json
  • tried with Firefox & Chrome
  • tried with NextJS/React & now Vite/React

I also tried making an equivalent repo but with supabase-js v1 and the equivalent subscription method, and I do get a "subscription" object returned (woohoo!), but I still never get a payload when i insert/update the DB.

To Reproduce

create a fresh React repo with Vite,
edit only the App.jsx per my screenshot below.

Expected behavior

  1. Subscriptions to return a subscription object (or something)
  2. and for a payload to be delivered when I add/edit the DB.

Screenshots

image

System information

  • macOS Monterey
  • firefox, chrome
  • node v16.15.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions