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

[BUG] JSON.stringify() doesn't know how to serialize a BigInt in Discover #8211

Closed
LDrago27 opened this issue Sep 17, 2024 · 0 comments · Fixed by #8232
Closed

[BUG] JSON.stringify() doesn't know how to serialize a BigInt in Discover #8211

LDrago27 opened this issue Sep 17, 2024 · 0 comments · Fixed by #8232
Assignees
Labels
2.17.1 bug Something isn't working

Comments

@LDrago27
Copy link
Collaborator

LDrago27 commented Sep 17, 2024

Describe the bug

Create the following index

  PUT /test-flat-object 
  {
    "mappings": {
      "properties": {
        "name": {
          "type": "text"
        },
        "attributes" : {
         "type":"flat_object" 
        }
      }
    }
  }

Populate the index with a document

POST test-flat-object/_doc
{
  "name": "item1",
  "attributes": {
        "Telemetry": "TelemetryEventType_BootTime",
        "TelemetryEventType_BootTime1": {
            "BootTimeDay": 17,
            "BootTimeFileTime": 133657326235000000
        }
    }
}

Create a Index pattern based on the above index
Navigate to Discover, the Discover experience is broken with an error JSON.stringify() doesn't know how to serialize a BigInt

Additional Observations
The issue stems from the field "BootTimeFileTime": 133657326235000000

Expected behavior
Discover should work without any errors.

OpenSearch Version
2.13, 2.17

Dashboards Version
2.13 , 2.17

Plugins

Please list all plugins currently enabled.

Screenshots

If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Browser and version [e.g. 22]

Additional context

Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.17.1 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants