ACR build fails in Jenkins with "'ascii' codec can't encode character"
See original GitHub issueDescribe the bug
Command Name
az acr build
Errors:
'ascii' codec can't encode character '\u0151' in position 4068: ordinal not in range(128)
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 215, in invoke
cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 654, in execute
raise ex
cli/core/commands/__init__.py, ln 718, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
...
python3.6/site-packages/colorama/ansitowin32.py, ln 190, in write_and_convert
self.write_plain_text(text, cursor, len(text))
python3.6/site-packages/colorama/ansitowin32.py, ln 195, in write_plain_text
self.wrapped.write(text[start:end])
UnicodeEncodeError: 'ascii' codec can't encode character '\u0151' in position 4068: ordinal not in range(128)
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- Put any pre-requisite steps here…
az acr build --registry {} --resource-group {} -t {} -t {} -f {} {}
Expected Behavior
This is the latest version of the AZ CLI, so I expected the old issue to be resolved
Environment Summary
Linux-3.10.0-1127.10.1.el7.x86_64-x86_64-with-centos-7.7.1908-Core
Python 3.6.8
Installer: RPM
azure-cli 2.10.1
Additional Context
When running the same az acr build
command with same Docker context on my local device it works properly.
Local device versoins:
MacOs Catalina 10.15.5
azure-cli 2.10.1
Python 3.8.5
Issue Analytics
- State:
- Created 3 years ago
- Comments:20 (6 by maintainers)
Top Results From Across the Web
Python error : UnicodeEncodeError: 'ascii' codec can't encode ...
I have a python script in which a function prints some lines from error file. Getting below error when I execute the script...
Read more >CLIInternalError: 'ascii' codec can't encode character '\u2716 ...
I have a AZ CLI task that executes an AZ ACR BUILD. At the end of the ACR build I get this error...
Read more >How to resolve UTF-8 Encoding issue in Jenkins - LinkedIn
The encoding issue was not seen in IntelliJ/Eclipse as in Settings, File encoding -> Global encoding value was set to UTF-8 by default....
Read more >Cleaning or deleting workspace fails with non-ASCII filename
I have a project in git that contains a file with unicode, non-ASCII characters. The build fails with: ERROR: Failed to clean the...
Read more >Deploying a Docker Image from Azure Container Registry ...
I was using Windows Containers, and it turns out that Azure does not have a support for it yet. Unfortunately, it does not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
waiting for our client to try this
Hi, we’re sending this friendly reminder because we haven’t heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don’t hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!