HTTPX errors
@mimi89999 I Saw your PR for httpx at github.com/encode/httpx/pull/3…
I came across a different invalid IDNA domain but it is also still reachable like yours:
xn--lw8h.xn--9s9h.it.com can be reached: xn--lw8h.xn--9s9h.it.com
But httpx causes this:
File "/home/foo/bar/venv/lib/python3.13/site-packages/httpx/_urls.py", line 191, in host
host = idna.decode(host)
File "/usr/lib/python3/dist-packages/idna/core.py", line 430, in decode
s = ulabel(label)
File "/usr/lib/python3/dist-packages/idna/core.py", line 328, in ulabel
check_label(label)
~~~~~~~~~~~^^^^^^^
File "/usr/lib/python3/dist-packages/idna/core.py", line 277, in check_label
raise InvalidCodepoint(
"Codepoint {} at position {} of {} not allowed".format(_unot(cp_value), pos + 1, repr(label))
)
idna.core.InvalidCodepoint: Codepoint U+1F535 at position 1 of '🔵' not allowedCan you please add this to your PR, too?
Theaitetos (Рцяэыоод) likes this.
cranston- likes this.
cranston- likes this.
@Rich
A government that reduces (not cancels) senior pensions and benefits for patients and gifting it around in the world is a shame (for the people).
Roland Häder🇩🇪 likes this.
cranston- likes this.
cranston- likes this.
cranston- likes this.
Wer Faschisten verteidigt kann selbst nur Faschist sein!
Bernd Höcke aka Landolf Ladig, der neue nette Führer von nebenan
Roland Häder🇩🇪 doesn't like this.
@plausibel Ich zitiere dir nochmals, was der @Günter schreibt, vielleicht wird es bei dir nicht angezeigt:
Vier Tage nach dem #Höcke-Talk bei #Ben.
Es gibt viel panisches Gebrüll von Links, nur eins fehlt bisher völlig:IRGENDEIN inhaltliches Gegenargument.
Sie haben NICHTS!Sie haben keine Angst vor Höcke, weil er Quatsch erzählt, sie haben Angst davor, dass die Leute ihm zuhören können.
Wir stehen übrigens bei 2,8 Millionen Klicks.
Der meistgeklickte Talk steht nach 7 Monaten bei 2,9 Millionen.
Roland Häder🇩🇪
in reply to Roland Häder🇩🇪 • •encode("idna")anddecode("idna")and they never complained? Maybe you can rewrite your PR to to switch to these functions?