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

ErrorMessage: 'gb2312' codec can't decode byte 0xc1 in position 2: illegal multibyte sequence #178

Open
haol666 opened this issue Jul 26, 2021 · 1 comment
Assignees
Labels
Bug Something isn't working

Comments

@haol666
Copy link

haol666 commented Jul 26, 2021

Describe the bug
URL: http://127.0.0.1:50253/api/emails/ada@qq.cn/inbox?reset=true&batch_size=150
ErrorName: UnicodeDecodeError
ErrorMessage: 'gb2312' codec can't decode byte 0xc1 in position 2: illegal multibyte sequence
Kanmail version: 1.2107081657
Status: 500
Traceback (most recent call last):
File "flask/app.py", line 1813, in full_dispatch_request
File "flask/app.py", line 1799, in dispatch_request
File "kanmail/server/app.py", line 107, in inner
File "kanmail/server/views/email_api.py", line 50, in api_get_account_folder_emails
File "kanmail/server/mail/init.py", line 75, in get_folder_emails
File "kanmail/server/util.py", line 33, in wrapper
File "kanmail/server/mail/folder.py", line 454, in get_emails
File "kanmail/server/mail/folder.py", line 235, in get_email_headers
File "kanmail/server/mail/util.py", line 101, in make_email_headers
File "kanmail/server/mail/util.py", line 49, in make_contact_tuples
File "kanmail/server/mail/util.py", line 49, in
File "kanmail/server/mail/util.py", line 40, in make_contact_tuple
File "kanmail/server/mail/util.py", line 151, in decode_header
UnicodeDecodeError: 'gb2312' codec can't decode byte 0xc1 in position 2: illegal multibyte sequence

@haol666 haol666 added the Bug Something isn't working label Jul 26, 2021
@github-actions
Copy link

This bug is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Aug 26, 2021
@Fizzadar Fizzadar self-assigned this Aug 26, 2021
@Fizzadar Fizzadar removed the Stale label Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants