{"record":{"id":"3eabdb63b226cd70","repo":"juspay/hyperswitch","slug":"failed-to-create-secret-management-client","errorCode":null,"errorMessage":"Failed to create secret management client","messagePattern":"Failed to create secret management client","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/router/src/routes/app.rs","lineNumber":446,"sourceCode":"}\n\nimpl AppState {\n    /// # Panics\n    ///\n    /// Panics if Store can't be created or JWE decryption fails\n    pub async fn with_storage(\n        conf: settings::Settings<SecuredSecret>,\n        storage_impl: StorageImpl,\n        shut_down_signal: oneshot::Sender<()>,\n        api_client: Box<dyn crate::services::ApiClient>,\n        service_name: &'static str,\n    ) -> Self {\n        #[allow(clippy::expect_used)]\n        let secret_management_client = conf\n            .secrets_management\n            .get_secret_management_client()\n            .await\n            .expect(\"Failed to create secret management client\");\n\n        let conf = Box::pin(secrets_transformers::fetch_raw_secrets(\n            conf,\n            &*secret_management_client,\n        ))\n        .await;\n\n        #[allow(clippy::expect_used)]\n        let encryption_client = conf\n            .encryption_management\n            .get_encryption_management_client()\n            .await\n            .expect(\"Failed to create encryption client\");\n\n        Box::pin(async move {\n            let testable = storage_impl == StorageImpl::PostgresqlTest;\n            #[allow(clippy::expect_used)]\n            let event_handler = conf","sourceCodeStart":428,"sourceCodeEnd":464,"githubUrl":"https://github.com/juspay/hyperswitch/blob/3093f22cc46b46415cca152ea0b234277b251ecd/crates/router/src/routes/app.rs#L428-L464","documentation":"Error \"Failed to create secret management client\" thrown in juspay/hyperswitch.","triggerScenarios":"Thrown at crates/router/src/routes/app.rs:443 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the secret management (KMS/Vault) configuration and connectivity"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3093f22cc46b46415cca152ea0b234277b251ecd","analyzedAt":"2026-08-19T10:36:43.745Z","contentChangedAt":"2026-08-19T10:36:43.745Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}