npm mapping: ValueError: Invalid IPv6 URL
https://sentry.softwareheritage.org/organizations/swh/issues/105266/?referrer=phabricator_plugin
ValueError: Invalid IPv6 URL
(2 additional frame(s) were not displayed)
...
File "swh/indexer/metadata_dictionary/base.py", line 224, in _translate_dict
self._translate_to_graph(graph, root, content_dict)
File "swh/indexer/metadata_dictionary/base.py", line 295, in _translate_to_graph
add_url_if_valid(graph, root, codemeta_key, str(v))
File "swh/indexer/metadata_dictionary/utils.py", line 110, in add_url_if_valid
if " " in url or not urllib.parse.urlparse(url).netloc:
File "urllib/parse.py", line 393, in urlparse
splitresult = urlsplit(url, scheme, allow_fragments)
File "urllib/parse.py", line 484, in urlsplit
raise ValueError("Invalid IPv6 URL")
Problem during metadata translation for content 5e19d7540645c108c0c8b030c7d9fd39e1bab296
Migrated from T4709 (view on Phabricator)