Skip to content

Deploy.ps1 fails during UI Build due to UnicodeEncodeError #176

Description

@daveinci

Describe the bug
Running deploy.ps1 fails during UI build phase, specifically during vite install, due to handling of error received during vite installation when it returns a checkmark (character '\u2713') in its result. Running the commands manually work.

To Reproduce
Steps to reproduce the behavior:

  1. Follow deployment instructions for "Full" deployment with PrivateACR and custom $ResourceNames defined. https://azure.github.io/ipam/#/deployment/README
  2. See error:
    RUN npm run build ---> Running in
    | cf61f8120ed6 > azure-ipam-ui@2.0.0 build > vite build vite v4.4.9 building for production... transforming...
    | ERROR: The command failed with an unexpected error. Here is the traceback: ERROR: 'charmap' codec can't encode
    | character '\u2713' in position 0: character maps to Traceback (most recent call last): File
    | "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke File
    | "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line
    | 663, in execute File
    | "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line
    | 726, in _run_jobs_serially File
    | "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line
    | 697, in _run_job File
    | "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line
    | 333, in call File
    | "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/acr/build.py", line 143, in acr_build File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/acr/_stream_utils.py", line 58, in stream_logs File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/acr/_stream_utils.py", line 143, in _stream_logs File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\colorama/ansitowin32.py", line 41, in write File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\colorama/ansitowin32.py", line 162, in write File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\colorama/ansitowin32.py", line 187, in write_and_convert File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\colorama/ansitowin32.py", line 195, in write_plain_text File "encodings\cp1252.py", line 19, in encode UnicodeEncodeError: 'charmap' codec can't encode character '\u2713' in position 0: character maps to To check existing issues, please visit: https://github.com/Azure/azure-cli/issues

Expected behavior
Expect deploy.ps1 to complete without error and ipam applications to be running in app service.
Screenshot 2023-09-27 090219

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • OS: [e.g. iOS] Windows 11, latest versions of prerequisites installed: PowerShell 7.3.7, Bicep 0.21.1, Az CLI 2.53.0, python 3.11.5
  • Browser [e.g. chrome, safari] N/A
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions