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

fix: move auth setup so it doesn't run for non-token based commands #1099

Merged
merged 5 commits into from
Nov 28, 2023

Conversation

Integralist
Copy link
Collaborator

@Integralist Integralist commented Nov 28, 2023

Problem

A user reported that compute serve was failing to run when they didn't have an internet connection.

This was happening because of an error related to a new (currently unreleased) SSO feature within the CLI.

The CLI was attempting to make a network call and due to the lack of connectivity, was causing the process to stop.

Solution

I've moved the auth processing tasks so that they only run when the user executes a command that requires an API token.

I've also added compute serve to the list of commands that don't require an API token.

@Integralist Integralist added the bug Something isn't working label Nov 28, 2023
@Integralist Integralist merged commit 4fe9186 into main Nov 28, 2023
6 checks passed
@Integralist Integralist deleted the integralist/prevent-well-known-err branch November 28, 2023 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant