Skip to content

s3 put-object fails to find body file #129

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
scaswell opened this issue May 23, 2013 · 1 comment
Closed

s3 put-object fails to find body file #129

scaswell opened this issue May 23, 2013 · 1 comment

Comments

@scaswell
Copy link

I'm trying to put a file:

aws s3 put-object --debug --bucket allconnect-distributions --key test.ear --body file:customer.ear

which fails with:

ValueError: Blob values must be a path to a file.

Debug output:

aws s3 put-object --debug --bucket allconnect-distributions --key test.txt --body file:touchpad-package.txt
2013-05-23 18:52:19,439 - botocore.base - DEBUG - Attempting to Load: aws/s3
2013-05-23 18:52:19,469 - botocore.base - DEBUG - Found data file: /usr/lib/python2.7/site-packages/botocore-0.10.0-py2.7.egg/botocore/data/aws/s3.json
2013-05-23 18:52:19,469 - botocore.base - ERROR - Unable to find file: /usr/lib/python2.7/site-packages/awscli-0.10.1-py2.7.egg/awscli/data/aws/s3.json
2013-05-23 18:52:19,491 - botocore.hooks - DEBUG - emit: service-created
2013-05-23 18:52:19,492 - botocore.hooks - DEBUG - emit: parser-created.s3
2013-05-23 18:52:19,493 - botocore.hooks - DEBUG - emit: parser-created.s3-put-object
2013-05-23 18:52:19,494 - botocore.hooks - DEBUG - emit: process-cli-arg.s3.put-object
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/awscli-0.10.1-py2.7.egg/awscli/clidriver.py", line 201, in _call
self._build_call_parameters(args, params)
File "/usr/lib/python2.7/site-packages/awscli-0.10.1-py2.7.egg/awscli/clidriver.py", line 154, in _build_call_parameters
param_dict[param.py_name] = self._unpack_cli_arg(param, value)
File "/usr/lib/python2.7/site-packages/awscli-0.10.1-py2.7.egg/awscli/clidriver.py", line 123, in _unpack_cli_arg
raise ValueError(msg)

I can't tell if the ERROR about s3.json missing file is affecting the --body flag. Other commands (i.s., list-buckets) work ok.

@garnaat
Copy link
Contributor

garnaat commented Aug 13, 2013

I think this:

aws s3 put-object --debug --bucket allconnect-distributions --key test.ear --body customer.ear

will work. I'm going to close this but please re-open if that doesn't take care of the problem.

@garnaat garnaat closed this as completed Aug 13, 2013
kdaily pushed a commit to kdaily/aws-cli that referenced this issue Apr 15, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants