-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Invalid root_cause for mustache_exception #12292
Comments
From talking to @clintongormley and @kimchy, the |
Looking at DoSection it looks like we take the string value of the |
@spalger Shouldn't you just be including the rest of the structured data in the exception object that youc reate? and rendering it as part of stringification? |
Yeah @clintongormley, I'm going to revamp the exception message a bit to include the related issue information so that the test will pass and the errors will be more informative. Thanks all :) |
In the JavaScript tests I'm trying to validate the error output when specifying an invalid mustache template, and while the correct error is produced, it is not sent in the API response as the root cause.
@colings86 mentioned this is likely a bug in the exception XContent rendering. (whatever that means 😸)
Here is a trace of the request:
And the test that produced it:
elasticsearch/rest-api-spec/src/main/resources/rest-api-spec/test/template/30_render_search_template.yaml
Lines 52 to 55 in d4b94a9
The text was updated successfully, but these errors were encountered: