juspay/hyperswitch · error
Failed to initialize superposition client
Error message
Failed to initialize superposition client
What it means
Error "Failed to initialize superposition client" thrown in juspay/hyperswitch.
Source
Thrown at crates/router/src/routes/app.rs:536
.await;
#[cfg(feature = "email")]
let email_client = Arc::new(create_email_client(&conf).await);
let file_storage_client = conf.file_storage.get_file_storage_client().await;
let theme_storage_client = conf.theme.storage.get_file_storage_client().await;
let crm_client = conf.crm.get_crm_client().await;
let grpc_client = conf.grpc_client.get_grpc_client_interface().await;
let infra_component_values = Self::process_env_mappings(conf.infra_values.clone());
let enhancement = conf.enhancement.clone();
#[allow(clippy::expect_used)]
let superposition_service = conf
.superposition
.get_inner()
.get_superposition_client(service_name)
.await
.expect("Failed to initialize superposition client");
Self {
flow_name: String::from("default"),
stores,
global_store,
accounts_store,
conf: Arc::new(conf),
#[cfg(feature = "email")]
email_client,
api_client,
event_handler,
#[cfg(feature = "olap")]
pools,
#[cfg(feature = "olap")]
opensearch_client,
request_id: None,
file_storage_client,
encryption_client,
grpc_client,View on GitHub (pinned to 3093f22cc4)
Solutions
- Verify the superposition service endpoint/credentials and connectivity
When it happens
Trigger: Thrown at crates/router/src/routes/app.rs:533 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/e35944b8e0fde687.
Report an issue: GitHub.