-
Notifications
You must be signed in to change notification settings - Fork 217
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
Getting "Invalid project ref format" error message when trying to run npx supabase db push
#2915
Comments
I can confirm that there is a bug with the latest version. In fact I have to go back all the way to v1.219.2. npx [email protected] db push
WARN: no SMS provider is enabled. Disabling phone login
Connecting to remote database...
Remote database is up to date.
A new version of Supabase CLI is available: v1.223.10 (currently installed v1.219.2)
We recommend updating regularly for new features and bug fixes: https://supabase.com/docs/guides/cli/getting-started#updating-the-supabase-cli |
Hey @bactrachdam @automationconsulting I couldn't reproduce on my end. Could you confirm that your
Also could you check if you might have set an |
I found this by googling an error a client of mine is facing. |
@tillka @automationconsulting @bactrachdam Hey there, thank's for reporting. There is not much we can do without the actual project ref to reproduce. I recommend opening a support ticket on the project that has the issue: https://supabase.com/dashboard/support/new That way we'll be able to fully investigate why this happens on those specific projects. |
Hey @avallete Thanks for your patience. I've been using the work around of using version 1.219.2, e.g., Hope that helps you with your investigation. Reading further into this issue online, it looks like I am not the only one experience this problem. CC: @tillka |
Hi all, I used to put the project-id in single quotes as in As I still run an older version of Supabase CLI the single quotes version still works for me - so there definitely have been some changes in how the cli reads the project-ref. |
Hey @tillka @bactrachdam, We recently fixed an issue with project-ref loading that might have allowed environment variables to override the flag set via the command line. This could have been the cause of the troubles you encountered: #2952 Could you please try again using the beta release channel ( |
I can confirm that I also have this error using the latest beta up to 2.0.10, reverting to 1.219.2 fixed it for me but would be nice to be able to update. I also get the project-ref error on db pull and other commands like migration list. If it helps any, I'm on windows 10 using wsl2. |
Bug report
Describe the bug
I have a Supabase project and want to run some migrations that I have written against the managed instances. Here are the commands I ran:
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
npx supabase init
Expected behavior
I expect the migration to run successfully. This has been working fine until the most recent upgrade to Supabase CLI. I haven't changed any configuration on my MacBook Pro M3.
Screenshots
System information
The text was updated successfully, but these errors were encountered: