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

Improve error message by handling caused_by.reason #401

Merged
merged 1 commit into from
May 30, 2024

Conversation

kevinwcyu
Copy link
Contributor

What this PR does / why we need it:

Lucene query error responses sometimes have the error message in the caused_by.reason property. This handles that case so the user can get a more helpful error message instead of "unknown OpenSearch error response" (see #400)

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:
Use the provisioned "AWS OpenSearch" data source with the following query in Explore. It show the error message shown in the screenshot instead of "unknown OpenSearch error response"

Screenshot 2024-05-29 at 12 08 54 PM

@kevinwcyu kevinwcyu merged commit 6212944 into main May 30, 2024
4 checks passed
@kevinwcyu kevinwcyu deleted the kevinwcyu/add-caused-by-error-message branch May 30, 2024 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants