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

Include RootCause in ElasticsearchError.Error() #906

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Sep 13, 2024

  1. Include RootCause in ElasticsearchError.Error()

    Previously it would just report:
    
    	status: 400, failed: [x_content_parse_exception], reason: [1:77] [bool] failed to parse field [filter]
    
    Which is just not very helpful; no idea what's wrong here. I've noticed
    this with quite a few errors over the last few weeks. The real error is
    "hidden" in the RootCause, so add that to the Error():
    
    	status: 400, failed: [x_content_parse_exception], reason: [1:77] [bool] failed to parse field [filter]: [term] query doesn't support multiple fields, found [collection_id] and [entities]
    
    Which is a bit long, but at least it has the actual error in there.
    arp242 committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    3ef94e8 View commit details
    Browse the repository at this point in the history