-
Notifications
You must be signed in to change notification settings - Fork 123
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] "No server available to handle the request" thrown by AWS Opensearch Service #698
Comments
I think there are two problems here.
I think (2) is definitely a problem for this client. If you want to try to fix this, start by writing a test that reproduces this behavior? |
@dblock It seems that the existing test case test('DeserializationError', ...) in the opensearch-js client code attempts to reproduce a JSON parsing error scenario. are you proposing doing something like this?
|
No, something like rethrow the original error without the message being parsed. Basically whatever happens if the server returns a text error instead of json. |
What is the bug?
It doesn't happen regularly, but I was able to catch it in my debugger:
And then, because of that trailing comma, things further complicate. That error is not even well formatted JSON, which makes it throw DeserializationError, which is how it reaches my code. We can ignore this one, I just needed to bitch about it a little bit.
How do we find why is the "No server available to handle the request" happening? How to mitigate this?
If this is the expected behavior of an overloaded ES cluster, how do we properly handle this error specifically?
How can one reproduce the bug?
It doesn't happen regularly. Error is seen when there is high CPU usage.
What is the expected behavior?
Well formated error that can be caught from our application.
What is your host/environment?
_AWS Lambda using sdk v3, opensearch-js 2.2.0
Do you have any screenshots?
Do you have any additional context?
Add any other context about the problem.
The text was updated successfully, but these errors were encountered: