From a71b8eed2db1add5c6957b6665754f5913e2466c Mon Sep 17 00:00:00 2001 From: David Botos Date: Tue, 20 Jan 2026 21:07:37 -0800 Subject: [PATCH] Fix Elasticsearch connector configuration key mismatch The Elasticsearch2 query runner was looking for configuration['server'] but BaseHTTPQueryRunner defines the schema field as 'url'. This caused a KeyError that manifested as 'Connection Test Failed: server'. Fixes #7044 --- redash/query_runner/elasticsearch2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redash/query_runner/elasticsearch2.py b/redash/query_runner/elasticsearch2.py index 3570d10b65..22d169b62c 100644 --- a/redash/query_runner/elasticsearch2.py +++ b/redash/query_runner/elasticsearch2.py @@ -46,7 +46,7 @@ def __init__(self, *args, **kwargs): self.syntax = "json" def get_response(self, url, auth=None, http_method="get", **kwargs): - url = "{}{}".format(self.configuration["server"], url) + url = "{}{}".format(self.configuration["url"], url) headers = kwargs.pop("headers", {}) headers["Accept"] = "application/json" return super().get_response(url, auth, http_method, headers=headers, **kwargs)