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

Indexing error messages are swallowed during bulkWrite #4

Closed
martoncsikos opened this issue Jul 18, 2017 · 1 comment
Closed

Indexing error messages are swallowed during bulkWrite #4

martoncsikos opened this issue Jul 18, 2017 · 1 comment

Comments

@martoncsikos
Copy link

martoncsikos commented Jul 18, 2017

When the data returned by client.bulk here contains errors, the error is propagated with an empty message.

The reason is this line.
The errors returned by bulk in this case are in item.index.error as an object.

Items with errors in the following format should not lose their error messages:

{
    "index": {
        "_index": "indexName",
        "_id": "recordId",
        "_type": "recordType",
        "status": 400,
        "error": {
          "type": "errorType",
          "reason": "errorReason",
          "caused_by": {
            "type": "causedType",
            "reason": "causedReason"
      }
   }
}
@voldern
Copy link
Owner

voldern commented Aug 22, 2017

Sorry for the slow reply, forgot about it over summer.

I've released v2.0.1 which should fix the problem. Thank you for making the issue! 🙇‍♂️

@voldern voldern closed this as completed Aug 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants