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
Print more details with JsonParseException #31778
Comments
Normally you could get that information back from the BulkResponse itself. |
If we store the following in a file called
and send it via the bulk API:
we get:
So, in case the id is provided in the bulk request, it is contained in the response as well. I am not sure whether it is possible to also include the field name in the error message, hence marking it as "Discuss". |
Pinging @elastic/es-core-infra |
We discussed it in FixIt Friday: parse exceptions can occur in different circumstances and thus it might not even possible to provide a field name. Also, the id as well as line and column are provided which point to the exact place where the parse exception has occurred. |
I am using dynamic field mappings to index a BigQuery table. Some data is missing in the BigQuery table, which is common and supported (in BigQuery). I see this in my Elasticsearch logs:
I see that the invalid token is NaN. It would be nice to know the relevant document id and field, so I know where to look in the BigQuery table.
(Maybe this exception is due to #12366)
The text was updated successfully, but these errors were encountered: