$ turbinia-client result task 2a6eda8baeb74a5787e7fc58f244a934
2023-10-04 15:25:15,766 INFO turbinia - Using configuration instance name -> default with host http://localhost:8000
Traceback (most recent call last):
File "/home/aaronpeterson/src/turbinia/turbinia/api/cli/turbinia_client/core/commands.py", line 88, in get_task_result
api_response = api_instance.get_task_output(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pydantic/decorator.py", line 40, in pydantic.decorator.validate_arguments.validate.wrapper_function
File "pydantic/decorator.py", line 134, in pydantic.decorator.ValidatedFunction.call
File "pydantic/decorator.py", line 206, in pydantic.decorator.ValidatedFunction.execute
File "/home/aaronpeterson/src/turbinia/turbinia/api/client/turbinia_api_lib/api/turbinia_request_results_api.py", line 211, in get_task_output
raise ValueError("Error! Please call the get_task_output_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
ValueError: Error! Please call the get_task_output_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/aaronpeterson/src/turbinia-talks/env/turbinia-client/bin/turbinia-client", line 33, in <module>
sys.exit(load_entry_point('turbinia-client', 'console_scripts', 'turbinia-client')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/aaronpeterson/src/turbinia-talks/env/turbinia-client/bin/turbinia-client", line 25, in importlib_load_entry_point
return next(matches).load()
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 202, in load
module = import_module(match.group('module'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/aaronpeterson/src/turbinia/turbinia/api/cli/turbinia_client/turbiniacli_tool.py", line 109, in <module>
main()
File "/home/aaronpeterson/src/turbinia/turbinia/api/cli/turbinia_client/turbiniacli_tool.py", line 102, in main
cli.main()
File "/home/aaronpeterson/src/turbinia-talks/env/turbinia-client/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/aaronpeterson/src/turbinia-talks/env/turbinia-client/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/aaronpeterson/src/turbinia-talks/env/turbinia-client/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/aaronpeterson/src/turbinia-talks/env/turbinia-client/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/aaronpeterson/src/turbinia-talks/env/turbinia-client/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/aaronpeterson/src/turbinia-talks/env/turbinia-client/lib/python3.11/site-packages/click/decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/aaronpeterson/src/turbinia/turbinia/api/cli/turbinia_client/core/commands.py", line 104, in get_task_result
log.error(f'Error reading saved results file {filename}: {exception}')
^^^^^^^^
UnboundLocalError: cannot access local variable 'filename' where it is not associated with a value
What steps will reproduce the bug?
$ turbinia-client result task <TaskID>
What is the expected behavior?
Get results/output from task
What do you see instead?
Additional information
No response