supabase-py
supabase-py copied to clipboard
AttributeError: 'RequestBuilder' object has no attribute 'on'
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.
Code responsible for realtime features is commented, for some reason.
any idea why this is disabled?
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?
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
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.
Actually, I'll update the description given this is still an issue.
Gotcha. Thanks!
This still seems to be an issue. The README still show on
as a function however it is disabled in the API itself
Hey @chitalian,
Do you mind pointing me to the relevant section of the README?Can't seem to find it in Supabase-py
This issue is stale because it has been open for 365 days with no activity.