You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR REASON {'type': 'mapper_parsing_exception', 'reason': 'object mapping for [response.data] tried to parse field [data] as object, but found a concrete value'}
Root cause
This is caused by response data schema vary. For example, the response data could be like the following
If OpenSearch received schema 1 firstly, the OpenSearch will expect the following data's response.data to be a object type. However if OpenSearch received schema 2 in the following data, it will encounter an error.
Solution
Do not index the response.data field by enabled: false, in the index template setting like below.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Error message
Root cause
This is caused by response data schema vary. For example, the response data could be like the following
Schema 1
Schema 2
If OpenSearch received schema 1 firstly, the OpenSearch will expect the following data's
response.data
to be a object type. However if OpenSearch received schema 2 in the following data, it will encounter an error.Solution
Do not index the
response.data
field byenabled: false
, in the index template setting like below.Beta Was this translation helpful? Give feedback.
All reactions