Closed yuliacech closed 2 months ago
There is a problem when sending a bulk request but only when it's formatted in a specific way:
This bulk request works
PUT /library/_bulk?refresh {"index":{"_id":"Leviathan Wakes"}} {"name":"Leviathan Wakes","author":"James S.A. Corey","release_date":"2011-06-02","page_count":561} {"index":{"_id":"Hyperion"}} {"name":"Hyperion","author":"Dan Simmons","release_date":"1989-05-26","page_count":482} {"index":{"_id":"Dune"}} {"name":"Dune","author":"Frank Herbert","release_date":"1965-06-01","page_count":604}
After using the button "apply indentations" this request fails
PUT /library/_bulk?refresh { "index": { "_id": "Leviathan Wakes" } } { "name": "Leviathan Wakes", "author": "James S.A. Corey", "release_date": "2011-06-02", "page_count": 561 } { "index": { "_id": "Hyperion" } } { "name": "Hyperion", "author": "Dan Simmons", "release_date": "1989-05-26", "page_count": 482 } { "index": { "_id": "Dune" } } { "name": "Dune", "author": "Frank Herbert", "release_date": "1965-06-01", "page_count": 604 }
The following error is displayed in the response panel
{ "error": { "root_cause": [ { "type": "x_content_e_o_f_exception", "reason": """com.fasterxml.jackson.core.io.JsonEOFException: Unexpected end-of-input: expected close marker for Object (start marker at [Source: (byte[])"{"; line: 1, column: 1]) at [Source: (byte[])"{"; line: 1, column: 2]""" } ], "type": "x_content_e_o_f_exception", "reason": """com.fasterxml.jackson.core.io.JsonEOFException: Unexpected end-of-input: expected close marker for Object (start marker at [Source: (byte[])"{"; line: 1, column: 1]) at [Source: (byte[])"{"; line: 1, column: 2]""", "caused_by": { "type": "json_e_o_f_exception", "reason": """Unexpected end-of-input: expected close marker for Object (start marker at [Source: (byte[])"{"; line: 1, column: 1]) at [Source: (byte[])"{"; line: 1, column: 2]""" } }, "status": 500 }
This issue is present in both Ace and Monaco versions of Console.
Pinging @elastic/kibana-management (Team:Kibana Management)
There is a problem when sending a bulk request but only when it's formatted in a specific way:
This bulk request works
After using the button "apply indentations" this request fails
The following error is displayed in the response panel
This issue is present in both Ace and Monaco versions of Console.