-
Notifications
You must be signed in to change notification settings - Fork 5
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
Python error Json decode #27
Labels
Comments
Searching for Taxon key: mammalia in Country: Malaysia |
Thanks for your report! According to the GBIF API Documentation (http://www.gbif.org/developer/occurrence), taxonKey should be an integer, not a taxon name. The API therefore returns I suggest:
What do you think? |
IMHO:
|
Thanks, all excellent suggestions! |
niconoe
added a commit
that referenced
this issue
Feb 4, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: