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

File "<string>", line 1lxml.etree.XMLSyntaxError: Document is empty, line 1, column 1 #629

Open
mcliquid opened this issue May 28, 2022 · 0 comments

Comments

@mcliquid
Copy link

URL: https://osm.wikidata.link/add_wikidata_tag
Real URL: https://osm.wikidata.link/Q21881776

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/flask_sockets.py", line 40, in call
handler, values = adapter.match()
File "/usr/lib/python3/dist-packages/werkzeug/routing.py", line 1945, in match
raise NotFound()
werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python3/dist-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/lib/python3/dist-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functionsrule.endpoint
File "/srv/osm-wikidata/matcher/view.py", line 298, in add_wikidata_tag
root = get_osm_object(osm_type, osm_id)
File "/srv/osm-wikidata/matcher/view.py", line 277, in get_osm_object
return etree.fromstring(r.content)
File "src/lxml/etree.pyx", line 3237, in lxml.etree.fromstring

File "src/lxml/parser.pxi", line 1896, in lxml.etree._parseMemoryDocument

File "src/lxml/parser.pxi", line 1784, in lxml.etree._parseDoc

File "src/lxml/parser.pxi", line 1141, in lxml.etree._BaseParser._parseDoc

File "src/lxml/parser.pxi", line 615, in lxml.etree._ParserContext._handleParseResultDoc

File "src/lxml/parser.pxi", line 725, in lxml.etree._handleParseResult

File "src/lxml/parser.pxi", line 654, in lxml.etree._raiseParseError

File "", line 1
lxml.etree.XMLSyntaxError: Document is empty, line 1, column 1

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