Closed jack-brinkman closed 1 year ago
Some queries on the occurrence endpoint return a HTTP 503 error, with the message: Cannot read properties of undefined (reading 'core')
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.
es-api
source.verbatim
null
core
@djtfmartin @qifeng-bai any ideas?
Fixed in the new ES index (https://github.com/gbif/pipelines/commit/508bd37f4ec1a2d30f54f3ce63b232e5ce0efafa) - thanks @djtfmartin :)
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 asnull
from the elastic index, and hence, the program errors when trying to read thecore
property.@djtfmartin @qifeng-bai any ideas?