architect-team / architect-cli

Command line interface for running Architect services locally
https://docs.architect.io
37 stars 13 forks source link

Catch error when trying to hit accounts endpoint, fallback to allowing user to select a local env #897

Closed TylerAldrich closed 1 year ago

TylerAldrich commented 1 year ago

This can happen if a user has an invalid token (for some reason) or an expired token. We'll attempt to hit the accounts endpoint, it will return an error, and the exec command would silently fail and not give the user any explanation.

If this happens now, it'll warn the user that they need to login, but still allow them to select the local dev environment and exec locally as normal.

Ticket: https://gitlab.com/architect-io/architect-cli/-/issues/660

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 1.39.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: