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

Bulk api not working on later ES versions #4

Open
orr3 opened this issue Jun 13, 2019 · 2 comments
Open

Bulk api not working on later ES versions #4

orr3 opened this issue Jun 13, 2019 · 2 comments

Comments

@orr3
Copy link

orr3 commented Jun 13, 2019

Hi!
Using the client.bulk method on later versions of elasticsearch throws an error.
StatusCodeError: Content-Type header [application/x-ldjson] is not supported

Using:
serverless-elasticsearch-client version: 1.1.1
Elasticsearch version: 6.7

According to below discussions later releases of Elasticsearch are not supporting application/x-ldjson for the bulk request. The problem will be resolved by upgrading the js plugin dependency of elasticsearch (12.1.3) in package.json to a newer version.

See this discussion: https://discuss.elastic.co/t/node-bulk-indexing-not-working-content-type-header-application-x-ldjson-is-not-supported/114944

@goldcaddy77
Copy link
Owner

Hey thanks for submitting this issue. Would you mind submitting a PR?

@orr3
Copy link
Author

orr3 commented Jul 22, 2019

I'd love to but I'm too unexperienced to know would this update require more changes than a simple version bump. Here's the PR.

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