supabase-py icon indicating copy to clipboard operation
supabase-py copied to clipboard

AttributeError: 'RequestBuilder' object has no attribute 'on'

Open iwootten opened this issue 3 years ago • 10 comments

Bug report

Describe the bug

The Python client doesn't support realtime subscription and fails with "AttributeError: 'RequestBuilder' object has no attribute 'on'".

(Update 17/01/22: This was an example originally forming part of the README)

To Reproduce

Using the following example from the original readme:

subscription = supabase.table("countries").on("*", lambda x: print(x)).subscribe()`

Expected behavior

For each postgres db change to be printed.

System information

  • MacOS 11.3 Beta
  • Version of supabase-js: [0.0.2]
  • Version of Node.js: [N/A - Using hosted]

Additional context

Add any other context about the problem here.

iwootten avatar Apr 08 '21 13:04 iwootten

Code responsible for realtime features is commented, for some reason.

abreumatheus avatar May 01 '21 06:05 abreumatheus

any idea why this is disabled?

sureshdsk avatar Sep 12 '21 15:09 sureshdsk

I've just hit this issue again, 9 months later when starting a new project. It's confusing that this example is in the documentation when it isn't enabled. Can it be removed?

iwootten avatar Dec 20 '21 14:12 iwootten

Hey @iwootten,

Thanks for bumping this! We're sorry that you had to face the error twice in a row D: I'll remove the example from the documentation.

Update: Just removed! Let me know if there's anything we can help with.

Thanks! Joel

J0 avatar Jan 17 '22 06:01 J0

Thanks for bumping this! We're sorry that you had to face the error twice in a row D: I'll remove the example from the documentation.

Update: Just removed! Let me know if there's anything we can help with.

Thanks Joel, I'll close this ticket.

iwootten avatar Jan 17 '22 15:01 iwootten

Actually, I'll update the description given this is still an issue.

iwootten avatar Jan 17 '22 15:01 iwootten

Gotcha. Thanks!

J0 avatar Jan 18 '22 03:01 J0

This still seems to be an issue. The README still show on as a function however it is disabled in the API itself

chitalian avatar Oct 05 '22 05:10 chitalian

Hey @chitalian,

Do you mind pointing me to the relevant section of the README?Can't seem to find it in Supabase-py

J0 avatar Oct 07 '22 08:10 J0

This issue is stale because it has been open for 365 days with no activity.

github-actions[bot] avatar Apr 30 '24 00:04 github-actions[bot]