Skip to content

Bulk api not working on later ES versions #4

Open
@orr3

Description

@orr3

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions