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

feat: start trial option if not started #2288

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

proksh
Copy link
Contributor

@proksh proksh commented Feb 4, 2025

Screenshot 2025-02-04 at 5 23 44 PM

maestro-cli/src/main/java/maestro/cli/api/ApiClient.kt Outdated Show resolved Hide resolved
val response = client.newCall(trialRequest).execute()
return response.isSuccessful;
} catch (e: IOException) {
println("Network error while starting trial: ${e.message}")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm, how are we handling IO exceptions in other places?

I recall that we're retrying in some cases. Should this failure also be retried, or would it be better to refine this message to guide the user on the appropriate action when this happens?

WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need to retry here. Since we are showing appropriate error message here, and start trial is one time only thing for any user.

maestro-cli/src/main/java/maestro/cli/api/ApiClient.kt Outdated Show resolved Hide resolved
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

Successfully merging this pull request may close these issues.

2 participants