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

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

Open
yu-itoh opened this issue Feb 3, 2023 · 1 comment

Comments

@yu-itoh
Copy link

yu-itoh commented Feb 3, 2023

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
Copy link
Author

yu-itoh commented Feb 8, 2023

Can anyone take a look this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant