Skip to content
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

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

Open
iwootten opened this issue Apr 8, 2021 · 10 comments
Open

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

iwootten opened this issue Apr 8, 2021 · 10 comments
Labels
bug Something isn't working realtime Issues related to realtime-py Stale

Comments

@iwootten
Copy link

iwootten commented Apr 8, 2021

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 iwootten added the bug Something isn't working label Apr 8, 2021
@abreumatheus
Copy link

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

@sureshdsk
Copy link

any idea why this is disabled?

@iwootten
Copy link
Author

iwootten commented Dec 20, 2021

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?

@J0
Copy link
Collaborator

J0 commented Jan 17, 2022

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

@iwootten
Copy link
Author

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
Copy link
Author

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

@J0
Copy link
Collaborator

J0 commented Jan 18, 2022

Gotcha. Thanks!

@J0 J0 reopened this Jan 18, 2022
@anand2312 anand2312 added the realtime Issues related to realtime-py label May 14, 2022
@chitalian
Copy link

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

@J0
Copy link
Collaborator

J0 commented Oct 7, 2022

Hey @chitalian,

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

Copy link
Contributor

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

@github-actions github-actions bot added the Stale label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working realtime Issues related to realtime-py Stale
Projects
Status: Done
Development

No branches or pull requests

6 participants