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

[Console] Bulk request fails after indentations are applied #186633

Closed
yuliacech opened this issue Jun 21, 2024 · 1 comment · Fixed by #188552
Closed

[Console] Bulk request fails after indentations are applied #186633

yuliacech opened this issue Jun 21, 2024 · 1 comment · Fixed by #188552
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Console Dev Tools Console Feature Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more

Comments

@yuliacech
Copy link
Contributor

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.

@yuliacech yuliacech added bug Fixes for quality problems that affect the customer experience Feature:Console Dev Tools Console Feature Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more labels Jun 21, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-management (Team:Kibana Management)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Console Dev Tools Console Feature Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants