AtlasOfLivingAustralia / extended-data-model

0 stars 0 forks source link

`es-api` errors on certain occurrence queries #85

Closed jack-brinkman closed 1 year ago

jack-brinkman commented 1 year ago

Some queries on the occurrence endpoint return a HTTP 503 error, with the message: Cannot read properties of undefined (reading 'core')

Example URL: https://events-test.ala.org.au/es/occurrence?body={"eventHierarchy":"1137356"}&apiKey=my-api-key

Looking at the es-api source, source.verbatim is returned as null from the elastic index, and hence, the program errors when trying to read the core property.

image

@djtfmartin @qifeng-bai any ideas?

jack-brinkman commented 1 year ago

Fixed in the new ES index (https://github.com/gbif/pipelines/commit/508bd37f4ec1a2d30f54f3ce63b232e5ce0efafa) - thanks @djtfmartin :)