question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UnicodeDecodeError has occurred on windows-latest

See original GitHub issue

Hi.

I use this action for the output of e2e-test result. And, I has error about UnicodeDecodeError at windows-latest environment. The error occurred only at windows-latest, but not occurred at mac-latest.

My workflow definition is below .

- uses: EnricoMi/publish-unit-test-result-action/composite@v1
   if: always()

And, error log is below.

  Traceback (most recent call last):
    File "D:\a\_actions\EnricoMi\publish-unit-test-result-action\v1\composite/../python/publish_unit_test_results.py", line 224, in <module>
      settings = get_settings(options, gha)
    File "D:\a\_actions\EnricoMi\publish-unit-test-result-action\v1\composite/../python/publish_unit_test_results.py", line 161, in get_settings
      event = json.load(f)
    File "C:\hostedtoolcache\windows\Python\3.7.9\x64\lib\json\__init__.py", line 293, in load
      return loads(fp.read(),
    File "C:\hostedtoolcache\windows\Python\3.7.9\x64\lib\encodings\cp1252.py", line 23, in decode
      return codecs.charmap_decode(input,self.errors,decoding_table)[0]
  UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 562: character maps to <undefined>
  Error: Process completed with exit code 1.

I check GITHUB_EVENT_PATH, and I find that the text include emoji because of commit message. Is emoji is cause of error?

I can’t solve this problem by myself, so please give me some solution or something. Thank you.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
EnricoMicommented, May 12, 2021

I could reproduce the issue with a push event. It is worrying that the issue is not persistent, lets hope the fix is. I am going to release this tomorrow morning (in about 12 hours).

0reactions
EnricoMicommented, May 13, 2021

This has been released and is available under @v1. Thanks for raising this annoying issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

error UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff ...
I've come across this thread when suffering the same error, after doing some research I can confirm, this is an error that happens...
Read more >
UnicodeDecodeError - Python Wiki
The UnicodeDecodeError normally happens when decoding an str string from a certain coding. Since codings map only a limited number of str ...
Read more >
Python 3 Notes: Reading and Writing Methods
"UnicodeDecodeError" means you have a file encoding issue. Each computer has its own system-wide default encoding, and the file you are trying to...
Read more >
GSCE-841: Error: "UnicodeDecodeError: 'utf-8' codec can't ...
Error: "UnicodeDecodeError: 'utf-8' codec can't decode byte" returns from Alteryx.installPackages() when installing fails in Windows Japanese OS.
Read more >
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 ...
Bug 1585565 - [lint.eslint] Work around mozprocess Windows + Python 3 bug, r? ... The error occurred in code that was called by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found