Example in apigatewaymanagementapi post-to-connection failed #6984
-
Describe the bugGot the error when running the example in the awscli/examples/apigatewaymanagementapi/post-to-connection.rst
Expected Behavior
Current Behavior
Reproduction StepsRun the cmd
Possible SolutionIt worked after adding the "--cli-binary-format".
Additional Information/ContextNo response CLI version usedaws-cli/2.1.18 Python/3.7.3 Environment details (OS name and version, etc.)Linux/5.10.102.1-microsoft-standard-WSL2 exe/x86_64.ubuntu.20 prompt/off |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @JohnChen-K thanks for reaching out. This behavior is referenced here in the CLI v1 to v2 migration changes documentation: https://docs.aws.amazon.com/cli/latest/userguide/cliv2-migration-changes.html#cliv2-migration-binaryparam There have been a few other issues opened regarding this such as #4994 and #5053. As mentioned in the documentation linked above, you can revert to the AWS CLI version 1 behavior using the |
Beta Was this translation helpful? Give feedback.
Hi @JohnChen-K thanks for reaching out. This behavior is referenced here in the CLI v1 to v2 migration changes documentation: https://docs.aws.amazon.com/cli/latest/userguide/cliv2-migration-changes.html#cliv2-migration-binaryparam
There have been a few other issues opened regarding this such as #4994 and #5053. As mentioned in the documentation linked above, you can revert to the AWS CLI version 1 behavior using the
cli_binary_format
file configuration or the--cli-binary-format
parameter. I'm going to convert this issue to a Discussion per our guidance process.