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

[BUG] Unable to create a new environment #103

Closed
msmygit opened this issue Sep 5, 2023 · 1 comment
Closed

[BUG] Unable to create a new environment #103

msmygit opened this issue Sep 5, 2023 · 1 comment
Assignees
Labels
bug Something isn't working ready_for_release
Milestone

Comments

@msmygit
Copy link
Collaborator

msmygit commented Sep 5, 2023

Describe the bug

While attempting to leverage the latest feature from 0.4 release to create a non-prod environment, I ran into the following error,

Expand/Collapse stacktrace
 % astra config create msdev --token AstraCS:CHANGE_ME --env DEV
 [ERROR] You provided an invalid value for option. (-option)
 [ERROR] Environment: can not convert "DEV" to a AstraEnvironment (ParseOptionConversionException)
 [ERROR] Try 'astra help <your_command>' to get help

To Reproduce

See the steps provided in the description.

Expected behavior
A new environment is created with the specified name.

Screenshots
n/a

Desktop (please complete the following information):

  • OS: MacOS
  • Version: Ventura 13.5.1

Additional context
n/a

@msmygit msmygit added the bug Something isn't working label Sep 5, 2023
@clun
Copy link
Collaborator

clun commented Oct 25, 2023

Error reason:
--env XX was not marshall as an expected AstraEnvironment

More validate

./target/astra config create issue_dev2 --token <token> --env integration
[ERROR] You provided an invalid value for option. (-option)
[ERROR] Invalid option value (--env), expecting [PROD, DEV, TEST] (ParseRestrictionViolatedException)
[ERROR] Try 'astra help <your_command>' to get help

@clun clun added this to the 0.5 milestone Oct 25, 2023
@clun clun self-assigned this Nov 2, 2023
@clun clun closed this as completed Nov 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ready_for_release
Projects
None yet
Development

No branches or pull requests

2 participants