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

Explainaboard find cli-client fails when not specifying sort-field #52

Open
neubig opened this issue Oct 27, 2022 · 0 comments
Open

Explainaboard find cli-client fails when not specifying sort-field #52

neubig opened this issue Oct 27, 2022 · 0 comments

Comments

@neubig
Copy link
Collaborator

neubig commented Oct 27, 2022

Example:

$python -m explainaboard_client.cli.find_systems --username $EB_USERNAME --api-key $EB_API_KEY --output-format tsv
Traceback (most recent call last):
  File "/Users/gneubig/opt/anaconda3/envs/explainaboard_web/lib/python3.10/site-packages/explainaboard_client/cli/find_systems.py", line 108, in main
    system_list: list[dict] = client.find_systems(
  File "/Users/gneubig/opt/anaconda3/envs/explainaboard_web/lib/python3.10/site-packages/explainaboard_client/client.py", line 293, in find_systems
    result: SystemsReturn = self._default_api.systems_get(
  File "/Users/gneubig/opt/anaconda3/envs/explainaboard_web/lib/python3.10/site-packages/explainaboard_api_client/api/default_api.py", line 1807, in systems_get
    return self.systems_get_endpoint.call_with_http_info(**kwargs)
  File "/Users/gneubig/opt/anaconda3/envs/explainaboard_web/lib/python3.10/site-packages/explainaboard_api_client/api_client.py", line 831, in call_with_http_info
    self.__validate_inputs(kwargs)
  File "/Users/gneubig/opt/anaconda3/envs/explainaboard_web/lib/python3.10/site-packages/explainaboard_api_client/api_client.py", line 725, in __validate_inputs
    fixed_val = validate_and_convert_types(
  File "/Users/gneubig/opt/anaconda3/envs/explainaboard_web/lib/python3.10/site-packages/explainaboard_api_client/model_utils.py", line 1577, in validate_and_convert_types
    converted_instance = attempt_convert_item(
  File "/Users/gneubig/opt/anaconda3/envs/explainaboard_web/lib/python3.10/site-packages/explainaboard_api_client/model_utils.py", line 1456, in attempt_convert_item
    raise get_type_error(input_value, path_to_item, valid_classes,
explainaboard_api_client.exceptions.ApiTypeError: Invalid type for variable 'sort_field'. Required value type is str and passed type was NoneType at ['sort_field']
failed to query systems
@neubig neubig mentioned this issue Oct 27, 2022
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 a pull request may close this issue.

1 participant