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

Incorrect client response when database on Postgres instance doesn't exist #257

Open
2 tasks done
w3b6x9 opened this issue Jan 17, 2024 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@w3b6x9
Copy link
Member

w3b6x9 commented Jan 17, 2024

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

Supavisor will continuously attempt to connect to a database even when that database doesn't exist. However, the client doesn't get the proper error feedback that database doesn't exist. See screen recording:

Screen.Recording.2024-01-12.at.17.30.06.mov

To Reproduce

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

  1. psql into a database that doesn't exist.

Expected behavior

Some sort of client error that clearly spells out there was an issue connecting to a database that doesn't exist.

Supavisor needs to stop doing additional work (following is repeated over and over):

16:22:27.870 [error] Error auth response ["SFATAL", "VFATAL", "C3D000", "Mdatabase \"bad\" does not exist", "Fpostinit.c", "L885", "RInitPostgres"] file=lib/supavisor/db_handler.ex line=227 pid=<0.987.0> project=dev_tenant user=postgres mode=transaction
16:22:27.870 [error] Connection closed when state was authentication file=lib/supavisor/db_handler.ex line=348 pid=<0.984.0> project=dev_tenant user=postgres mode=transaction
16:22:27.870 [error] Connection closed when state was authentication file=lib/supavisor/db_handler.ex line=348 pid=<0.987.0> project=dev_tenant user=postgres mode=transaction
@w3b6x9 w3b6x9 added the bug Something isn't working label Jan 17, 2024
@w3b6x9 w3b6x9 changed the title Incorrect response when database on Postgres instance doesn't exist Incorrect client response when database on Postgres instance doesn't exist Jan 17, 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
Projects
None yet
Development

No branches or pull requests

1 participant