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

Pressing ctrl + c to abort a query throws "unexpected error" #586

Open
mmailaender opened this issue Jan 29, 2025 · 0 comments
Open

Pressing ctrl + c to abort a query throws "unexpected error" #586

mmailaender opened this issue Jan 29, 2025 · 0 comments

Comments

@mmailaender
Copy link

mmailaender commented Jan 29, 2025

If I run fauna schema push the CLI asks ? Push the above changes? (y/N). If I type N and press enter, everything is fine, but if I press ctrl + c it throws an unexpected error.

No gamebreaker, but in favor to avoid broken window effects would be nice to see it fixed.

? Push the above changes? (y/N)
fauna schema push

Push local .fsl schema files to Fauna.

Output:
      --color  Enable color formatting. Use --no-color to disable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [boolean] [default: true]
      --json   Output the results as JSON.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     [boolean] [default: false]
      --quiet  Suppress all log messages except fatal errors. Overrides --verbosity and --verbose-component.                                                                                                                                                                                                                                                                                                                                                                                                                                                                   [boolean] [default: false]

Config:
      --config   Path to a CLI config file to use. If provided, you must specify a profile.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       [string] [default: "."]
  -p, --profile  Profile from the CLI config file to use.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [string]

Debug:
      --verbose-component  Components to emit logs for. Overrides the --verbosity flag. Pass values as a space-separated list. Ex: --verbose-component fetch error.                                                                                                                                                                                                                                                                                                                                            [array] [choices: "argv", "completion", "config", "creds", "error", "fetch"] [default: []]
      --verbosity          Least critical log level to emit. Accepts 1 (fatal) to 5 (debug). Lower values represent more critical logs.                                                                                                                                                                                                                                                                                                                                                                                                                                             [number] [default: 0]

API:
      --account-key  Fauna account key used for authentication. Can't be used with --user or --secret.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           [string]
  -u, --user         CLI user to run the command as. You must first log in as the user using 'fauna login'.                                                                                                                                                                                                                                                                                                                                                                                                                                                                 [string] [default: "default"]
  -r, --role         Role used to run the command.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               [string]
  -d, --database     Database, including Region Group and hierarchy, to run the command in. Ex: 'us/my_db', 'eu/parent_db/child_db', 'global/db'.                                                                                                                                                                                                                                                                                                                                                                                                                                                [string]
      --local        Use a local Fauna container. Sets --url to 'http://0.0.0.0:8443' and --secret to 'secret'.                                                                                                                                                                                                                                                                                                                                                                                                                                                                [boolean] [default: false]
      --url          URL for Core HTTP API requests made by the command. Defaults to https://db.fauna.com.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       [string]
      --secret       Secret used for authentication.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             [string]

Options:
  -h, --help                               Show help.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           [boolean]
      --version                            Show the Fauna CLI version.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [boolean]
      --fsl-directory, --directory, --dir  Path to a local directory containing .fsl files for the database.                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [string] [default: "."]
      --input                              Prompt for input. Use --no-input to disable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         [boolean] [default: true]
      --active                             Apply the local schema to the database's active schema. Can result in temporarily unavailable indexes.                                                                                                                                                                                                                                                                                                                                                                                                                              [boolean] [default: false]

Examples:
  fauna schema push --database us/my_db --dir /path/to/schema/dir             Stage schema changes for the 'us/my_db' database. If schema is already staged, replace the staged schema.
  fauna schema push --secret my-secret --dir /path/to/schema/dir              Stage schema changes for the database scoped to a secret. If schema is already staged, replace the staged schema.
  fauna schema push --database us/my_db --dir /path/to/schema/dir --active    Immediately apply changes to the 'us/my_db' database's active schema.
  fauna schema push --database us/my_db --dir /path/to/schema/dir --no-input  Run the command without input prompts.

An unexpected error occurred...

User force closed the prompt with 0 null

If you believe this is a bug, please report this issue on GitHub: https://github.com/fauna/fauna-shell/issues

Using cli 4

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