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

Vercel CLI misleading error on missing permissions: "Could not retrieve Project Settings. To link your Project, remove the .vercel directory and deploy again." #10874

Open
ohadschn opened this issue Nov 25, 2023 · 0 comments

Comments

@ohadschn
Copy link

Running the same command using the --debug reveals the actual issue (which has nothing to do with a .vercel folder which was never there):

[debug] [2023-11-25T14:15:40.859Z] #2 → GET https://api.vercel.com/v9/projects/prj_XXXXXXXXXXXXXXXXXXX
[debug] [2023-11-25T14:15:41.535Z] #2 ← 403 Forbidden: sfo1::xxxxxx-xxxxxxxxxxxx-xxxxxxxxxxxxxxxxx[676ms]

Some thoughts / options:

  1. Propagate the actual exception (so the user at least sees some 403 / forbidden)
  2. Suggest using the --debug option (rather than the current suggestion about the .vercel folder)
  3. Retroactively detect the relevant [debug] logs and print them out (even when -d wasn't specified)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant