spacectl icon indicating copy to clipboard operation
spacectl copied to clipboard

Misleading error from local-preview when token has expired

Open evan10s opened this issue 1 year ago • 4 comments

I use browser authentication with spacectl. When I run spacectl stack local-preview

but my session has expired, the error I get is:

2024/11/06 10:54:36 no stack found: no --id flag was provided and stack could not be found by searching the current directory

In reality, I just have to re-authenticate and then it works. It would be nice if it triggered the login process automatically or told me I need to login again instead.

evan10s avatar Nov 06 '24 15:11 evan10s

hey @evan10s could you provide what version of spacectl you're using?

tomasmik avatar Nov 07 '24 07:11 tomasmik

1.5.0

I didn't realize 1.6.0 was out, I'll see if I can reproduce on that

evan10s avatar Nov 07 '24 14:11 evan10s

It seems to happen on 1.6.0 for me as well

evan10s avatar Nov 07 '24 14:11 evan10s

Ok, will look in to, thanks for confirming

tomasmik avatar Nov 11 '24 07:11 tomasmik

This is still an issue on 1.11.0

asser-dk avatar May 28 '25 12:05 asser-dk