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] Invalid json error responses #12149

Closed
sebmjoll opened this issue Feb 2, 2024 · 3 comments
Closed

[BUG] Invalid json error responses #12149

sebmjoll opened this issue Feb 2, 2024 · 3 comments
Labels
bug Something isn't working Other untriaged

Comments

@sebmjoll
Copy link

sebmjoll commented Feb 2, 2024

Describe the bug

When running queries against an AWS-managed OpenSearch 1.3 cluster, when the cluster is under load, we sometimes get the following error payload when trying to index a document:

{
  "message": "No server available to handle the request",
}

The trailing comma makes it invalid json and the library "@opensearch-project/opensearch" version 2.5.0 fails to parse it with errors like this:

Unexpected token } in JSON at position 60

We also get sometimes another invalid json response when searching:

{
  "message": "Empty or invalid response",
}

Related component

Other

To Reproduce

I don't know how to force errors like that.

Expected behavior

If the APIs are supposed to return strictly valid JSON, then they should not return invalid JSON.

If on the other hand, these response payloads are considered legit, the javascript "@opensearch-project/opensearch" library should not fail to parse them.

Additional Details

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]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@sebmjoll sebmjoll added bug Something isn't working untriaged labels Feb 2, 2024
@github-actions github-actions bot added the Other label Feb 2, 2024
@dblock
Copy link
Member

dblock commented Feb 2, 2024

This seems like an AWS-specific problem that's generated on some gateway and not inside OpenSearch, or at least I couldn't find this string anywhere in this project.

Have you opened a ticket with AWS yet? If not, could you please do that? I'd like to close it here once you did.

@sebmjoll
Copy link
Author

sebmjoll commented Feb 3, 2024

We are reporting this to AWS, yes.

@dblock
Copy link
Member

dblock commented Feb 5, 2024

Thanks @sebmjoll, I'm going to close this here. Feel free to reopen/comment if you don't get traction or a response and I can see if I can help.

@dblock dblock closed this as completed Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Other untriaged
Projects
None yet
Development

No branches or pull requests

2 participants