juspay/hyperswitch · error
Failed to create secret management client
Error message
Failed to create secret management client
What it means
Error "Failed to create secret management client" thrown in juspay/hyperswitch.
Source
Thrown at crates/router/src/routes/app.rs:446
}
impl AppState {
/// # Panics
///
/// Panics if Store can't be created or JWE decryption fails
pub async fn with_storage(
conf: settings::Settings<SecuredSecret>,
storage_impl: StorageImpl,
shut_down_signal: oneshot::Sender<()>,
api_client: Box<dyn crate::services::ApiClient>,
service_name: &'static str,
) -> Self {
#[allow(clippy::expect_used)]
let secret_management_client = conf
.secrets_management
.get_secret_management_client()
.await
.expect("Failed to create secret management client");
let conf = Box::pin(secrets_transformers::fetch_raw_secrets(
conf,
&*secret_management_client,
))
.await;
#[allow(clippy::expect_used)]
let encryption_client = conf
.encryption_management
.get_encryption_management_client()
.await
.expect("Failed to create encryption client");
Box::pin(async move {
let testable = storage_impl == StorageImpl::PostgresqlTest;
#[allow(clippy::expect_used)]
let event_handler = confView on GitHub (pinned to 3093f22cc4)
Solutions
- Check the secret management (KMS/Vault) configuration and connectivity
When it happens
Trigger: Thrown at crates/router/src/routes/app.rs:443 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/3eabdb63b226cd70.
Report an issue: GitHub.