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

Getting "Invalid project ref format" error message when trying to run npx supabase db push #2915

Open
2 tasks done
bactrachdam opened this issue Nov 24, 2024 · 1 comment
Open
2 tasks done
Labels
bug Something isn't working

Comments

@bactrachdam
Copy link

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

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:

npx supabase --version # --> 1.223.10
npx supabase login # --> login via browser
npx supabase link --project-ref <PROJECT_REF> # --> Project Ref I got from Supabase Dashboard
npx supabase db push # --> Invalid project ref format. Must be like `abcdefghijklmnopqrst`.
npx supabase db push --debug # --> WARN: no SMS provider is enabled. Disabling phone login. Invalid project ref format. Must be like `abcdefghijklmnopqrst`.

To Reproduce

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

  1. You can either use an existing Supabase project to create a new one with npx supabase init
  2. Create a simple migration file
  3. Run the following commands
npx supabase login # --> login via browser
npx supabase link --project-ref <PROJECT_REF> # --> Project Ref from Supabase Dashboard
npx supabase db push

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

Screenshot 2024-11-25 at 10 02 59 am

System information

  • OS: MacOS
  • Version of supabase-js: 2.45.1
  • Version of Node.js: 18.18.0
  • Supabase CLI: 1.223.10
@bactrachdam bactrachdam added the bug Something isn't working label Nov 24, 2024
@automationconsulting
Copy link

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

@charislam charislam transferred this issue from supabase/supabase Nov 25, 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

2 participants