juspay/hyperswitch · error
Failed to initialize OpenSearch client.
Error message
Failed to initialize OpenSearch client.
What it means
Error "Failed to initialize OpenSearch client." thrown in juspay/hyperswitch.
Source
Thrown at crates/router/src/routes/app.rs:476
.await
.expect("Failed to create encryption client");
Box::pin(async move {
let testable = storage_impl == StorageImpl::PostgresqlTest;
#[allow(clippy::expect_used)]
let event_handler = conf
.events
.get_event_handler()
.await
.expect("Failed to create event handler");
#[allow(clippy::expect_used)]
#[cfg(feature = "olap")]
let opensearch_client = conf
.opensearch
.get_opensearch_client()
.await
.expect("Failed to initialize OpenSearch client.")
.map(Arc::new);
let redis_event_emitter: Arc<
dyn common_utils::external_service::ExternalServiceEventEmitter,
> = if conf.events.emit_external_service_call_events {
Arc::new(event_handler.clone())
} else {
Arc::new(common_utils::external_service::NoOpEventEmitter)
};
#[allow(clippy::expect_used)]
let cache_store = get_cache_store(
&conf.clone(),
shut_down_signal,
redis_event_emitter,
testable,
)
.await
.expect("Failed to create store");View on GitHub (pinned to 3093f22cc4)
Solutions
- Verify the OpenSearch endpoint/credentials and that the cluster is reachable
When it happens
Trigger: Thrown at crates/router/src/routes/app.rs:473 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of juspay/hyperswitch@3093f22cc4 (2026-08-19).
Data as JSON: /api/errors/9c020d44cc0b860c.
Report an issue: GitHub.