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
This probably should not raise a JSON error, since the actual error is not a JSON error, but something to do with the transport and/or what is returned ...
os.environ['ESDOC_API'] = 'https://test-api.es-doc.org/'
import pyesdoc as esd
docs = esd.search('cmip6','experiments')
returning
docs = esd.search('cmip6','experiments')
File "/Users/BNL28/anaconda3/envs/py27/lib/python2.7/site-packages/pyesdoc/_search.py", line 83, in search
return SearchResult(json.loads(response.text))
File "/Users/BNL28/anaconda3/envs/py27/lib/python2.7/json/__init__.py", line 339, in loads
return _default_decoder.decode(s)
File "/Users/BNL28/anaconda3/envs/py27/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Users/BNL28/anaconda3/envs/py27/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded``
The text was updated successfully, but these errors were encountered:
This probably should not raise a JSON error, since the actual error is not a JSON error, but something to do with the transport and/or what is returned ...
The following code works:
returning
The following does not:
returning
The text was updated successfully, but these errors were encountered: