Open jankovicgd opened 6 years ago
Is there a CSW we can test against?
Thanks for the fast reply.
I am connecting at https://csw.eodc.eu/
Below is an ID.
M20170123_202730--_SIG0-----_S1BIWGRDH1VVD_104_A0101_OC010M_E070N065T1
Hey, any progress here? I am getting a different error now.
Traceback (most recent call last):
File "/home/nikola/Tests/owslib_test/test.py", line 7, in <module>
csw.getrecordbyid(id=[id],
File "/home/nikola/Tests/owslib_test/.venv/lib/python3.10/site-packages/owslib/catalogue/csw2.py", line 304, in getrecordbyid
self._invoke()
File "/home/nikola/Tests/owslib_test/.venv/lib/python3.10/site-packages/owslib/catalogue/csw2.py", line 708, in _invoke
self._exml = etree.parse(BytesIO(self.response))
File "/home/nikola/.pyenv/versions/3.10.4/lib/python3.10/xml/etree/ElementTree.py", line 1229, in parse
tree.parse(source, parser)
File "/home/nikola/.pyenv/versions/3.10.4/lib/python3.10/xml/etree/ElementTree.py", line 580, in parse
self._root = parser._parse_whole(source)
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 1, column 0
This Issue has been inactive for 90 days. In order to manage maintenance burden, it will be automatically closed in 7 days.
I am trying to get a record in JSON but getting a XMLSyntaxError. The default format works. Sending a simple GET with
outputFormat=application/json
also works.Input
Output
Additional info
Running on Ubuntu 18.04 in a jupyter notebook with python 3.6.5.
Thanks in advance.