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

Errors not written to stderr #820

Closed
colinbjohnson opened this issue Jun 19, 2014 · 1 comment · Fixed by #919
Closed

Errors not written to stderr #820

colinbjohnson opened this issue Jun 19, 2014 · 1 comment · Fixed by #919
Labels
bug This issue is a bug. s3

Comments

@colinbjohnson
Copy link

Description of Issue

errors that prevent file copy operations when running aws s3 commands are written to stdout

Steps to Reproduce

tested with both invalid s3 credentials and with destination files that could not be written to)

  1. Modify credentials to be invalid (example: export AWS_ACCESS_KEY=xxxxxxxxxxxxxxxxxxx)
  2. Run command, with output piped to stdout, example: aws s3 sync s3://mybucket/myobjects/ /Temp > /dev/null

Expected Output

(venv)hostname:Temp username$ aws s3 sync aws s3 sync s3://mybucket/myobjects/ /Temp > /dev/null A client error (InvalidAccessKeyId) occurred when calling the ListObjects operation: The AWS Access Key Id you provided does not exist in our records. Completed 1 part(s) with ... file(s) remaining

Actual Output

(venv)hostname:Temp username$ aws s3 sync aws s3 sync s3://mybucket/myobjects/ /Temp > /dev/null

The same behavior occurs when running in --quiet mode - although the expectation with quiet mode might be that both stdout and stderr are suppressed.

@colinbjohnson colinbjohnson changed the title Errors not written to stderr / written to stdout Errors not written to stderr Jun 19, 2014
@jamesls jamesls added the s3 label Jul 16, 2014
@jamesls jamesls added bug and removed s3 labels Jul 31, 2014
@edorivai
Copy link

Could this also be the case for the aws eb CLI? My CI build is passing while running aws elasticbeanstalk create-application-version, even though the CLI outputs

A client error (InvalidParameterValue) occurred when calling the CreateApplicationVersion operation: Application Version 1a0a45f1496e5f5fe2fffa6450138c078571e78e already exists.

as I would expect. The fact that my CI build passes leads me to believe that the message is printed to stdout instead of stderr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. s3
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants