question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

symbol '_' not allowed

See original GitHub issue
д_ругойтест.рф
Codepoint U+005F at position 2 of 'д_ругойтест' not allowed

Full traceback:

Traceback (most recent call last):
  File "/home/user/somedirectory/code.py", line 34, in <module>
    punnycode_to_replace = idna.encode("д_ругойтест.рф")
  File "/usr/local/lib/python3.5/dist-packages/idna/core.py", line 355, in encode
    result.append(alabel(label))
  File "/usr/local/lib/python3.5/dist-packages/idna/core.py", line 276, in alabel
    check_label(label)
  File "/usr/local/lib/python3.5/dist-packages/idna/core.py", line 253, in check_label
    raise InvalidCodepoint('Codepoint {0} at position {1} of {2} not allowed'.format(_unot(cp_value), pos+1, repr(label)))
idna.core.InvalidCodepoint: Codepoint U+005F at position 2 of 'д_ругойтест' not allowed
[Finished in 0.4s with exit code 1]

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jrlevinecommented, Jan 25, 2022

the _labels are not host names. Also, since they start with an underscore rather than xn-- IDNA obviously doesn’t apply to them.

0reactions
sebschradercommented, Jan 25, 2022

It should be noted that SRV record labels do contain underscores (e.g. _ldap._tcp.example.com).

Read more comments on GitHub >

github_iconTop Results From Across the Web

63168 Not Allowed Symbol Images, Stock Photos & Vectors
63,168 not allowed symbol stock photos, vectors, and illustrations are available royalty-free. See not allowed symbol stock video clips.
Read more >
Not Allowed Symbols Vector Images (over 11,000) - VectorStock
The best selection of Royalty Free Not Allowed Symbols Vector Art, Graphics and Stock ... Showing 11,788 royalty-free vectors for Not Allowed Symbols....
Read more >
Not allowed symbol Images | Free Vectors, Stock Photos & PSD
Find & Download Free Graphic Resources for Not Allowed Symbol. 70000+ Vectors, Stock Photos & PSD files. ✓ Free for commercial use ✓...
Read more >
Not Allowed Sign Vector Art - Vecteezy
Browse 3262 incredible Not Allowed Sign vectors, icons, clipart graphics, and backgrounds for royalty-free download from the creative contributors at ...
Read more >
Not allowed Icons & Symbols - Flaticon
6362 not allowed icons. Vector icons in SVG, PSD, PNG, EPS and ICON FONT.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found