Exception on URL with encoded emoji #2586
Replies: 3 comments 5 replies
-
It looks like the code that is causing the error has been updated in the master branch. |
Beta Was this translation helpful? Give feedback.
-
This updated code did NOT fix the issue. I did the following: pip show Successfully installed httpx-0.23.3 There error is now in a different spot... check_label in idna\core.py
|
Beta Was this translation helpful? Give feedback.
-
I encounter the same issue calling any url having, or redirecting to domains that are not compatible to idna 2008. Code snippet:
Traceback Configuration: Can httpx.URL handle decoding idna 2003 domains ( Line 191 in db9072f
|
Beta Was this translation helpful? Give feedback.
-
For URLs that have an emoji I am seeing the httpx.InvalidURL exception. The same url works fine in requests.
Is there a way to get these urls to work in httpx, or is this an httpx bug?
Here is the test case:
Here is the output:
Edited to add version information
httpx version: 0.23.1
Python version: 3.11
OS: WIndows11
Same issues also seen:
httpx version: 0.23.3
Python version: 3.9.12
OS: WIndows11
Beta Was this translation helpful? Give feedback.
All reactions