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

SNOW-1752069: generate-jwt should use settings from config.toml #1744

Open
sfc-gh-vtimofeenko opened this issue Oct 18, 2024 · 0 comments
Open

Comments

@sfc-gh-vtimofeenko
Copy link

Description

Currently generate_jwt command has its own set of flags and does not seem to take config.toml into account at all.

For example:

snow connection generate-jwt --private-key <p8-file-path>                             
Enter private key file password (Press enter if none) []: 

An unexpected exception occurred. Use --debug option to see the traceback. Exception message:

argument of type 'NoneType' is not iterable

The error

argument of type 'NoneType' is not iterable
Probably happens because of the type here:

def generate_jwt(
    account: str = typer.Option(
        None,
        "--account",
        "-a",
        "--accountname",
        help="Account name to use when authenticating with Snowflake.",
        show_default=False,
    ),

This also applies to the user and private_key_file values.

  • Other commands use values from the configuration file
  • argument of type 'NoneType' is not iterable is not immediately apparent on how to fix. --debug does show the location, but the error message could be better

Context

No response

@github-actions github-actions bot changed the title generate-jwt should use settings from config.toml SNOW-1752069: generate-jwt should use settings from config.toml Oct 18, 2024
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

No branches or pull requests

1 participant