You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
online_checks._package_finding raises UnicodeEncodeError for a package name with a lone surrogate #862
dokimi/dokimi/external/online_checks.py:577 builds the registry URL with quote(name) and quote(name, safe='@'), which encode strictly. _package_finding(None, 'pypi', 'n\ud800') raises UnicodeEncodeError: 'utf-8' codec can't encode character '\ud800' in position 1: surrogates not allowed ('n\udcff' too), outside the try below it. The function-level repro is what was run; a package name takes the escape from a YAML \ud800 escape in the checked file's front matter or a script.
Fix: quote(name, errors='replace') as Context7Client.get_library_docs does now, or skip the lookup for a name that is not valid text.
Activity