logs tail fails to due to charmap problem #8928
Labels
bug
This issue is a bug.
closed-for-staleness
logs
p2
This is a standard priority issue
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
Executing the following command in PS:
resulted in the following error and only part of the log was downloaded:
'charmap' codec can't encode character '\u2720' in position 1059: character maps to
Expected Behavior
aws logs tail must deal with undefined characters and unknown character encoding and continue download of the complete log file, with:
Number 4 is obviously the most preferred, followed by number 3 or 1.
Current Behavior
As written in the description; logs tail stops with the following error:
'charmap' codec can't encode character '\u2720' in position 1059: character maps to
Reproduction Steps
I am not certain what character has been inserted into the log to cause this behavior. Could be an upper latin-1 character output in the stream by printing of a "foreign" name perhaps. I suppose inserting '\u2720' into a log file and trying to download it should trigger the bug.
Possible Solution
No response
Additional Information/Context
Our applications producing the logs are written in java21 with spring boot 3.2.0 and lombok.extern.slf4j.Slf4j logger.
CLI version used
aws-cli/2.13.34 Python/3.11.6 Windows/10 exe/AMD64 prompt/off
Environment details (OS name and version, etc.)
Windows 11, PowerShell.
The text was updated successfully, but these errors were encountered: