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

Bugfix UnicodeDecodeError exception raising when debug=True #228

Merged
merged 1 commit into from
Jan 29, 2024
Merged

Bugfix UnicodeDecodeError exception raising when debug=True #228

merged 1 commit into from
Jan 29, 2024

Conversation

deedy5
Copy link
Contributor

@deedy5 deedy5 commented Jan 28, 2024

If set debug=True:

requests.AsyncSession(impersonate="chrome", debug=True)

debugging information is printed. But exceptions of this kind often appear among the text:

Exception ignored from cffi callback <function debug_function at 0x7f0f245a80e0>:
Traceback (most recent call last):
  File "/home/user/.local/lib/python3.11/site-packages/curl_cffi/curl.py", line 40, in debug_function
    print(text.decode())
          ^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb3 in position 1: invalid start byte
Exception ignored from cffi callback <function debug_function at 0x7f0f245a80e0>:
Traceback (most recent call last):
  File "/home/user/.local/lib/python3.11/site-packages/curl_cffi/curl.py", line 40, in debug_function
    print(text.decode())
          ^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd5 in position 8: invalid continuation byte

@perklet perklet merged commit 792b725 into lexiforest:main Jan 29, 2024
3 checks passed
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