{"record":{"id":"bd092e08c6b0bbdf","repo":"juspay/hyperswitch","slug":"failed-to-build-grpc-connections","errorCode":null,"errorMessage":"Failed to build gRPC connections","messagePattern":"Failed to build gRPC connections","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/external_services/src/grpc_client.rs","lineNumber":136,"sourceCode":"        #[cfg(all(\n            any(feature = \"dynamic_routing\", feature = \"revenue_recovery\"),\n            feature = \"deja\"\n        ))]\n        let client = deja_transport::DejaGrpcTransport::new(client);\n\n        #[cfg(feature = \"dynamic_routing\")]\n        let dynamic_routing_connection = self\n            .dynamic_routing_client\n            .clone()\n            .map(|config| config.get_dynamic_routing_connection(client.clone()))\n            .transpose()\n            .expect(\"Failed to establish a connection with the Dynamic Routing Server\")\n            .flatten();\n\n        #[cfg(feature = \"dynamic_routing\")]\n        let health_client = HealthCheckClient::build_connections(self, client.clone())\n            .await\n            .expect(\"Failed to build gRPC connections\");\n\n        let unified_connector_service_client =\n            UnifiedConnectorServiceClient::build_connections(self).await;\n\n        #[cfg(feature = \"revenue_recovery\")]\n        let recovery_decider_client = {\n            match &self.recovery_decider_client {\n                Some(config) => {\n                    // Validate the config first\n                    config\n                        .validate()\n                        .expect(\"Recovery Decider configuration validation failed\");\n\n                    // Create the client\n                    let client = config\n                        .get_recovery_decider_connection(client.clone())\n                        .expect(\n                            \"Failed to establish a connection with the Recovery Decider Server\",","sourceCodeStart":118,"sourceCodeEnd":154,"githubUrl":"https://github.com/juspay/hyperswitch/blob/705a3219504c3cf9034e71d956455f8834ea4e64/crates/external_services/src/grpc_client.rs#L118-L154","documentation":"Error \"Failed to build gRPC connections\" thrown in juspay/hyperswitch.","triggerScenarios":"Thrown at crates/external_services/src/grpc_client.rs:136 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the gRPC client configuration (endpoints, TLS) and service availability"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"705a3219504c3cf9034e71d956455f8834ea4e64","analyzedAt":"2026-08-19T10:36:43.745Z","contentChangedAt":"2026-08-19T10:36:43.745Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}