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

UnicodeEncodeError: 'charmap' codec can't encode character '\u0413' in position 286: character maps to <undefined> #366

Closed
iHeluani opened this issue Jan 17, 2022 · 1 comment

Comments

@iHeluani
Copy link

Version: 0.14.0
Python: 3.8.4 (tags/v3.8.4:dfa645a, Jul 13 2020, 16:46:45) [MSC v.1924 64 bit (AMD64)]
boto3 version: 1.20.15
Platform: Windows-10-10.0.18362-SP0
Args: ['C:\Python38\Scripts\awslogs', 'get', 'prod-HagueFiles', '-s', '3d']
Config: {'aws_access_key_id': 'SENSITIVE', 'aws_secret_access_key': 'SENSITIVE', 'aws_session_token': 'SENSITIVE', 'aws_profile': 'SENSITIVE', 'aws_region': None, 'aws_endpoint_url': None, 'log_group_name': 'prod-HagueFiles', 'log_stream_name': 'ALL', 'filter_pattern': None, 'watch': False, 'watch_interval': 1, 'output_group_enabled': True, 'output_stream_enabled': True, 'output_timestamp_enabled': False, 'output_ingestion_time_enabled': False, 'start': '3d', 'end': None, 'color': 'auto', 'query': None, 'func': 'list_logs'}

Traceback (most recent call last):
File "c:\python38\lib\site-packages\awslogs\bin.py", line 179, in main
getattr(logs, options.func)()
File "c:\python38\lib\site-packages\awslogs\core.py", line 229, in list_logs
consumer()
File "c:\python38\lib\site-packages\awslogs\core.py", line 218, in consumer
print(' '.join(output))
File "c:\python38\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u0413' in position 286: character maps to

@jorgebastida
Copy link
Owner

Fixed as part of #396

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

2 participants