-
Notifications
You must be signed in to change notification settings - Fork 1.2k
ElasticSearch.Net.Exceptions.MaxRetryException hides server error #633
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
Comments
hmm this should already be the case, will double check. |
Ahh, SearchPhraseExecution is a server exception and this won't be set as InnerException. |
It will now throw an In your case By default NEST follows a more c/go like error checking pattern with
You can configure NEST to always throw a real exception in this case like so:
Or Elasticsearch.Net
I'm still debating whether the default should be throw or not (I still want to support both patterns) any input on this is welcome :) |
I would expect that the default behaviour is based on what kind of exceptionType the server has raised. For instance:
|
When using Nest 1.0-beta1 + ES 1.1.1 the MaxRetryException gives no usefull information.
The query which we used resulted in a
SearchPhaseExecutionException
because it was buggy. It took more time then was needed to diagnose because we got MaxRetryExceptions in our logs instead of the underlying exception message from the server.Expected result: Append server error into
MaxRetryException
asInnerException
.The text was updated successfully, but these errors were encountered: