aws-toolkit-azure-devops icon indicating copy to clipboard operation
aws-toolkit-azure-devops copied to clipboard

##[error]'charmap' codec can't encode characters in position 1098-1135: character maps to <undefined>

Open yu-itoh opened this issue 2 years ago • 1 comments

Describe the bug

To reproduce

  1. Create release pipeline from Azure DevOps
  2. Add task AWS Toolkit for Azure DevOps.
  3. Input the following inline code by Powershell.
  4. $SsmListCommand = aws ssm list-command-invocations --instance-id $InstanceId --no-details | ConvertFrom-Json
  5. You will get the error like the title.

Expected behavior

ConvertFrom-Json command should work properly. *On my local PC it worked without this issue.

Screenshots image

Your Environment

  • On-prem or cloud based?:
  • Azure DevOps version:
  • AWS Toolkit for Azure DevOps version:

Additional context It seems the result of "aws ssm list-command-invocations --instance-id $InstanceId --no-details" contains garbled cahracter like this screenshot (yellow highlighted part) image . If the result doesn't contain this kind of garbled character this error doesn't occur.

yu-itoh avatar Feb 03 '23 07:02 yu-itoh

Can anyone take a look this issue?

yu-itoh avatar Feb 08 '23 06:02 yu-itoh