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

iNaturalist API 504 Gateway Time-out #758

Closed
jhpoelen opened this issue Feb 5, 2022 · 4 comments
Closed

iNaturalist API 504 Gateway Time-out #758

jhpoelen opened this issue Feb 5, 2022 · 4 comments

Comments

@jhpoelen
Copy link
Member

jhpoelen commented Feb 5, 2022

@kueda Hi!

I noticed that the iNaturalist updates aren't coming in as expected. For some reason, 504 Gateway Time-out are reported when requesting urls like:

https://www.inaturalist.org/observation_field_values.json?type=taxon&page=1&per_page=100&quality_grade=research

Please let me know if there's anything I can do to work around this issue.

Thanks!

Please note I am still hearing back from you about lingering #427 ideas. Also, note that changes to ResourceRelations extension in DwC-A have been approved and introduced into DwC. You can find the rigorous paper trail at tdwg/dwc#283 .

@jhpoelen jhpoelen changed the title iNaturalist API timeout iNaturalist API 504 Gateway Time-out Feb 5, 2022
jhpoelen pushed a commit that referenced this issue Mar 10, 2022
@jhpoelen
Copy link
Member Author

@kueda note that due to some caching issue, iNaturalist record dropped out of GloBI for a little. Have implemented a fix, and rebuilding the GloBI index. Apologies for the interruption.

Root cause - I reduced the page size as suggested. And, by doing so, the cached version of iNaturalist could no longer be used (e.g., the request urls changed, so cached content didn't line up).

Temporary fix - revert back to page size of 100.

Long term fix - make a cached version of the reduced page size inaturalist first, then use it to rebuild the GloBI index.

@jhpoelen
Copy link
Member Author

Temporary fix resulted in iNaturalist observations being indexed by GloBI again. (see attached results from https://www.globalbioticinteractions.org/?accordingTo=globi%3Aglobalbioticinteractions%2Finaturalist&interactionType=eats&sourceTaxon=Enhydra%20lutris ) that includes, among many others (>200k observations), this sea otter munching on some tasty marine life https://www.inaturalist.org/observations/77386996 .

@kueda - I am assuming that GloBI's badge next to the "this observation is features on ..." will reappear after your iNaturalist robot will make another round at asking GloBI for which iNaturalist observations were indexed.

@kueda
Copy link

kueda commented Mar 14, 2022

Yes, if everything's working correctly, the badges should re-appear some time this week.

@jhpoelen
Copy link
Member Author

jhpoelen commented Apr 1, 2022

Confirmed that the GloBI badge for https://www.inaturalist.org/observations/77386996 is now appearing again . See attached screenshot from today, 1 April 2022.

Screenshot from 2022-04-01 10-59-06

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

2 participants