Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: URL can't contain control characters #11

Open
cr-solutions opened this issue Feb 29, 2024 · 0 comments
Open

Error: URL can't contain control characters #11

cr-solutions opened this issue Feb 29, 2024 · 0 comments

Comments

@cr-solutions
Copy link

Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/home/rcescon/python-sitemap-generator.py", line 212, in run
temp_res = urlopen(temp_req)
File "/usr/lib/python3.10/urllib/request.py", line 216, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.10/urllib/request.py", line 519, in open
response = self._open(req, data)
File "/usr/lib/python3.10/urllib/request.py", line 536, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
result = func(*args)
File "/usr/lib/python3.10/urllib/request.py", line 1391, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File "/usr/lib/python3.10/urllib/request.py", line 1348, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "/usr/lib/python3.10/http/client.py", line 1283, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.10/http/client.py", line 1294, in _send_request
self.putrequest(method, url, **skips)
File "/usr/lib/python3.10/http/client.py", line 1128, in putrequest
self._validate_path(url)
File "/usr/lib/python3.10/http/client.py", line 1228, in _validate_path
raise InvalidURL(f"URL can't contain control characters. {url!r} "
http.client.InvalidURL: URL can't contain control characters. '/de-de/de_DE/cat/DURCHS-GANZE-JAHR-8222/Gemeinsame-Aktivitaeten-8223/Abenteuer-Ausflug-8226/void(0); return false;' (found at least ' ')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant