Supabase CLI link fails - Management API /api-keys returns 404 Not Found #50693
Replies: 2 comments
|
Is the project ref definitely being spelled correctly? I've seen this issue before when that has a letter missing or transposed with another letter |
|
Here is why this error occurs and how to immediately unblock applying your database migrations. Why
|
Uh oh!
There was an error while loading. Please reload this page.
Hi Supabase team/community,
I am unable to link my local Supabase project using the Supabase CLI.
Environment:
supabase projects listWhen I run:
npx.cmd supabase link --project-ref <PROJECT_REF>
I receive:
Authorization failed for the access token and project ref pair:
{"message":"Not Found"}
I also tested:
npx.cmd supabase projects api-keys --project-ref <PROJECT_REF>
and receive:
unexpected get api keys status 404:
{"message":"Not Found"}
Running
supabase link --debugshows that the CLI successfully calls:GET /v1/projects/<PROJECT_REF>
but the request to:
GET /v1/projects/<PROJECT_REF>/api-keys
returns 404 Not Found.
Important details:
Could you please confirm whether this is a Management API / CLI compatibility issue related to the newer API key system, or advise how I can successfully link this project?
My immediate goal is to link the existing project and safely apply my pending database migrations.
For security, I have intentionally not included any access tokens, API keys, database passwords, or service-role keys.
Thank you.
All reactions