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

Example is broken #257

Closed
2 tasks done
Sandr0x00 opened this issue Jan 17, 2025 · 0 comments · Fixed by #265
Closed
2 tasks done

Example is broken #257

Sandr0x00 opened this issue Jan 17, 2025 · 0 comments · Fixed by #265
Labels
bug Something isn't working

Comments

@Sandr0x00
Copy link
Contributor

Sandr0x00 commented Jan 17, 2025

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

The code in /example just does not work. There are multiple issues. (Only test_postgres_changes was relevant for me, so I ignored the others)

  • The example code uses the data from tests folder without stating it somewhere
  • test_postgres_changes tries to subscribe to id=eq.10 but id is a uuid
  • test_postgres_changes blocks infinitely => test_presence will never be executed
  • Only a delete query triggers the callback, INSERT and UPDATE don't for some reason. (might be related to Python realtime with RLS #86, but unsure why delete than works)

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Go to 'example'
  2. Use migration from /tests/supabase/migrations/20240810125543_init.sql as /example/supabase/seed.sql
  3. npx supabase start
  4. Execute poetry run python app.py

Expected behavior

A working example, which developers can check and learn from.

System information

Latest supabase 2.6.8

npx supabase services

        SERVICE IMAGE      │      LOCAL       │ LINKED
  ─────────────────────────┼──────────────────┼─────────
    supabase/postgres      │ 15.8.1.020       │ -
    supabase/gotrue        │ v2.167.0         │ -
    postgrest/postgrest    │ v12.2.0          │ -
    supabase/realtime      │ v2.33.70         │ -
    supabase/storage-api   │ v1.14.5          │ -
    supabase/edge-runtime  │ v1.66.4          │ -
    supabase/studio        │ 20250113-83c9420 │ -
    supabase/postgres-meta │ v0.84.2          │ -
    supabase/logflare      │ 1.4.0            │ -
    supabase/supavisor     │ 1.1.56           │ -
@Sandr0x00 Sandr0x00 added the bug Something isn't working label Jan 17, 2025
@silentworks silentworks linked a pull request Jan 24, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant