Skip to content

Python error Json decode #27

Open
Open
@pcav

Description

JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "/home/paolo/.qgis2/python/plugins/qgisgbifapi/qgis_occurrences_dialog.py", line 167, in load_occurrences
count = count_occurrences(filters)
File "/home/paolo/.qgis2/python/plugins/qgisgbifapi/gbif_webservices.py", line 34, in count_occurrences
resp = req.json()
File "/usr/lib/python2.7/dist-packages/requests/models.py", line 808, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python2.7/dist-packages/simplejson/init.py", line 516, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Versione Python: 2.7.11 (default, Jan 11 2016, 21:04:40) [GCC 5.3.1 20160101]
Versione di QGIS: 2.13.0-Master Master, exported

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions