Skip to content

Instantly share code, notes, and snippets.

@humphriesjm
Created July 10, 2021 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save humphriesjm/6cadf048006a891e16a626a02926df49 to your computer and use it in GitHub Desktop.
Save humphriesjm/6cadf048006a891e16a626a02926df49 to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "/tmp/runscript.py", line 207, in <module>
download_and_install(args.extra_py_files, timeout=time_out)
File "/tmp/runscript.py", line 137, in download_and_install
download_from_s3(s3_file_path, local_file_path)
File "/tmp/runscript.py", line 165, in download_from_s3
retry(_download_from_s3, s3, bucket_name, s3_key, new_file_path, exceptions=TimeoutError, message="downloading {} from s3".format(s3_script_location))
File "/tmp/runscript.py", line 35, in retry
return func(*func_args)
File "/tmp/runscript.py", line 164, in _download_from_s3
_s3.download_file(_bucket_name, _s3_key, _new_file_path)
File "/usr/local/lib/python3.6/site-packages/boto3/s3/inject.py", line 172, in download_file
extra_args=ExtraArgs, callback=Callback)
File "/usr/local/lib/python3.6/site-packages/boto3/s3/transfer.py", line 307, in download_file
future.result()
File "/usr/local/lib/python3.6/site-packages/s3transfer/futures.py", line 106, in result
return self._coordinator.result()
File "/usr/local/lib/python3.6/site-packages/s3transfer/futures.py", line 265, in result
raise self._exception
File "/usr/local/lib/python3.6/site-packages/s3transfer/tasks.py", line 255, in _main
self._submit(transfer_future=transfer_future, **kwargs)
File "/usr/local/lib/python3.6/site-packages/s3transfer/download.py", line 345, in _submit
**transfer_future.meta.call_args.extra_args
File "/usr/local/lib/python3.6/site-packages/botocore/client.py", line 357, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/usr/local/lib/python3.6/site-packages/botocore/client.py", line 634, in _make_api_call
api_params, operation_model, context=request_context)
File "/usr/local/lib/python3.6/site-packages/botocore/client.py", line 682, in _convert_to_request_dict
api_params, operation_model)
File "/usr/local/lib/python3.6/site-packages/botocore/validate.py", line 297, in serialize_to_request
raise ParamValidationError(report=report.generate_report())
botocore.exceptions.ParamValidationError: Parameter validation failed:
Invalid length for parameter Key, value: 0, valid range: 1-inf
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/runscript.py", line 230, in <module>
raise e_type(e_value).with_traceback(new_stack)
TypeError: __init__() takes 1 positional argument but 2 were given
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment