juspay/hyperswitch · error
Failed to create mock store
Error message
Failed to create mock store
What it means
Error "Failed to create mock store" thrown in juspay/hyperswitch.
Source
Thrown at crates/router/src/routes/app.rs:641
#[allow(clippy::expect_used)]
get_store(
conf,
tenant,
master_config,
accounts_config,
Arc::clone(&cache_store),
testable,
key_manager_state,
)
.await
.expect("Failed to create store"),
),
},
#[allow(clippy::expect_used)]
StorageImpl::Mock => Box::new(
MockDb::new(&conf.redis, key_manager_state)
.await
.expect("Failed to create mock store"),
),
}
}
pub async fn new(
conf: settings::Settings<SecuredSecret>,
shut_down_signal: oneshot::Sender<()>,
api_client: Box<dyn crate::services::ApiClient>,
service_name: &'static str,
) -> Self {
Box::pin(Self::with_storage(
conf,
StorageImpl::Postgresql,
shut_down_signal,
api_client,
service_name,
))
.awaitView on GitHub (pinned to 3093f22cc4)
Solutions
- Check the mock store configuration used in this run mode
When it happens
Trigger: Thrown at crates/router/src/routes/app.rs:637 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/eacb3c243bd21814.
Report an issue: GitHub.