aws-cli icon indicating copy to clipboard operation
aws-cli copied to clipboard

Error message does not contain correct invalid parameter value

Open brendandixon opened this issue 13 years ago • 2 comments

The command:

aws ses get-identity-verification-attributes --identities "[email protected]"

returns:

{
    "Errors": [
        {
            "Message": "Identity \"[email protected]\" is invalid. Must be a verified email address or domain.", 
            "Code": "InvalidParameterValue", 
            "Type": "Sender"
        }
    ], 
    "VerificationAttributes": {}, 
    "ResponseMetadata": {
        "RequestId": "7e327942-e018-11e2-a360-27750189195f"
    }
}A client error (InvalidParameterValue) occurred: Identity "[email protected]" is invalid. Must be a verified email address or domain.

Note that, in the final message, the "" characters are removed. The identify specified would then be valid. This is confusing.

brendandixon avatar Jun 28 '13 17:06 brendandixon

What would the proposed fix be? This will depend on the escaped rules of the shell you're using (which at least vary between cmd/bash). If we want to provide the literal value typed on the CLI, wouldn't we have to work out the escaping rules for the shell?

@garnaat thoughts?

jamesls avatar Aug 13 '13 21:08 jamesls

I don't know how we could fix this. It's an interaction between escaping in the shell and in Python.

garnaat avatar Aug 13 '13 21:08 garnaat