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

fix encoding when reading log file #455

Merged
merged 1 commit into from
Feb 29, 2024
Merged

fix encoding when reading log file #455

merged 1 commit into from
Feb 29, 2024

Conversation

Michael1297
Copy link

@Michael1297 Michael1297 commented Feb 20, 2024

fix character in the log file
maybe fixed:

20/02/24 18:02:56 - ERROR - TwitchChannelPointsMiner.classes.AnalyticsServer - [log_exception]: Exception on /log [GET]
Traceback (most recent call last):
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\app.py", line 2529, in wsgi_app
    response = self.full_dispatch_request()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\app.py", line 1825, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\app.py", line 1823, in full_dispatch_request
    rv = self.dispatch_request()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\flask\app.py", line 1799, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "C:\Users\Administrator\Documents\Twitch-Channel-Points-Miner-v2-master\TwitchChannelPointsMiner\classes\AnalyticsServer.py", line 256, in generate_log
    log_content = log_file.read()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\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 0x81 in position 43759: character maps to 

@rdavydov rdavydov self-assigned this Feb 23, 2024
@rdavydov rdavydov merged commit 06c6555 into rdavydov:master Feb 29, 2024
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

Successfully merging this pull request may close these issues.

2 participants