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

occurrences.get exception in demos documention #39

Closed
tucotuco opened this issue Oct 18, 2016 · 2 comments
Closed

occurrences.get exception in demos documention #39

tucotuco opened this issue Oct 18, 2016 · 2 comments
Milestone

Comments

@tucotuco
Copy link

From

https://github.com/sckott/pygbif/blob/master/demos/pygbif-intro.ipynb

The example

from pygbif import occurrences
occurrences.get(key = 252408386)

Throws an exception

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Python/2.7/site-packages/pygbif/occurrences/get.py", line 17, in get
    out = gbif_GET(url, {}, **kwargs)
  File "/Library/Python/2.7/site-packages/pygbif/gbifutils.py", line 19, in gbif_GET
    out.raise_for_status()
  File "/Library/Python/2.7/site-packages/requests/models.py", line 862, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://api.gbif.org/v1/occurrence/252408386
@sckott
Copy link
Collaborator

sckott commented Oct 18, 2016

@tucotuco thanks for the heads up on this - that occurrence key does not exist anymore :(

I'll update the docs and make sure all egs work ... ⏲

@sckott sckott added this to the v0.2 milestone Oct 18, 2016
@tucotuco
Copy link
Author

Thank you!

@sckott sckott closed this as completed in 0c9a7ac Oct 19, 2016
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

2 participants