Skip to content

bug: _bulk API requests produce error #70

@buddemat

Description

@buddemat

The following _bulk request works in the Kibana Dev Console:

POST /my-index/_bulk
{ "index": {} }
{ "message": "One."  }
{ "index": {} }
{ "message": "Two." }
{ "index": {} }
{ "message": "Three." }

In VSCode it fails with the following error

{
    "error": {
        "root_cause": [
            {
                "type": "illegal_argument_exception",
                "reason": "The bulk request must be terminated by a newline [\\n]"
            }
        ],
        "type": "illegal_argument_exception",
        "reason": "The bulk request must be terminated by a newline [\\n]"
    },
    "status": 400
}

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