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

Unauthorized errors are misleading #65

Open
dmikalova opened this issue May 24, 2022 · 0 comments
Open

Unauthorized errors are misleading #65

dmikalova opened this issue May 24, 2022 · 0 comments

Comments

@dmikalova
Copy link

My team recently started using SpaceLift and I was trying out the local preview feature. However I get an unauthorized error:

spacectl stack preview --id x
2022/05/24 14:57:04 unauthorized: you can re-login using `spacectl profile login`

The error makes it seem like I am not logged in, but the following works:

spacectl profile current
spacectl stack show --id x

After talking with SpaceLift support it seems like I mistakenly don't have permissions to run a stack which I can address with my SpaceLift admin.

It would be helpful if the spacectl errors could differentiate between not being logged in and not having permissions to run a stack. Thanks!

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