Skip to content

fix(elastic): surface clear error for Elasticsearch 7.x (UnsupportedProductError)#6413

Open
ayoubil wants to merge 1 commit intokeephq:mainfrom
ayoubil:fix/elastic-es7-compat
Open

fix(elastic): surface clear error for Elasticsearch 7.x (UnsupportedProductError)#6413
ayoubil wants to merge 1 commit intokeephq:mainfrom
ayoubil:fix/elastic-es7-compat

Conversation

@ayoubil
Copy link
Copy Markdown

@ayoubil ayoubil commented May 6, 2026

Summary

Catches UnsupportedProductError from elasticsearch-py 8.x separately and surfaces a clear, actionable error message.

Closes #5174

Problem

Connecting to Elasticsearch 7.x with elasticsearch-py 8.x raises UnsupportedProductError because ES 7.x does not send the required X-Elastic-Product: Elasticsearch header. Previously this was swallowed by the generic except Exception block with a cryptic message.

Fix

Import and catch UnsupportedProductError explicitly, raising ProviderConnectionFailed with an actionable message explaining the ES 7.x / elasticsearch-py 8.x incompatibility and recommended remediation steps.

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. Bug Something isn't working labels May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[🔌 Provider]: Elastic to add compatibility support for ES 7.x

1 participant