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

RGBIF #4526

Closed
gbif-portal opened this issue Jan 16, 2023 · 6 comments
Closed

RGBIF #4526

gbif-portal opened this issue Jan 16, 2023 · 6 comments

Comments

@gbif-portal
Copy link
Collaborator

RGBIF

having trouble downloading occurance data as it says 'sendNotification' is missing


User: See in registry - Send email
System: Chrome 108.0.0 / Mac OS X 10.15.7
Referer: https://www.gbif.org/user/download
Window size: width 1113 - height 710
API log
Site log
System health at time of feedback: OPERATIONAL

@ManonGros
Copy link

related to #4525

@nmtarr
Copy link

nmtarr commented Jan 20, 2023

I'm having this issue or a similar one when trying to download DWCA of occurrence data via email with pygbif (occurrences.download()). My code ran successfully last week but now returns this message and the download seems to get hung up. Did something change with download requests?

error: #: extraneous key [created] is not permitted
#/send_notification: expected: null, found: String
#/send_notification: expected type: Boolean, found: String, with error status code 400check your number of active downloads.

@MattBlissett
Copy link
Member

Hi nmtarr,

I think this is because PyGBIF is sending "sendNotification": "true" when, strictly speaking, it should send "sendNotification": true in the request to GBIF's API. We've recently tightened up this part of the processing for unrelated reasons, but this part is now too strict -- even some of our older documentation has quotes around true/false values.

We hope to have this fixed tomorrow.

@nmtarr
Copy link

nmtarr commented Jan 23, 2023

@MattBlissett,

Thank you for responding. Will the fix be applied to the API or PyGBIF?

@MattBlissett
Copy link
Member

The fix will be to the API.

MattBlissett added a commit to gbif/pygbif that referenced this issue Jan 24, 2023
MattBlissett added a commit to gbif/pygbif that referenced this issue Jan 24, 2023
MattBlissett added a commit to gbif/pygbif that referenced this issue Jan 24, 2023
@MattBlissett
Copy link
Member

There was another problem, with PyGBIF sending created for download requests.

Part of the fix was to the API, and part of the fix is to PyGBIF v0.6.2.

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

No branches or pull requests

4 participants