juspay/hyperswitch · error
Failed to build gRPC connections
Error message
Failed to build gRPC connections
What it means
Error "Failed to build gRPC connections" thrown in juspay/hyperswitch.
Source
Thrown at crates/external_services/src/grpc_client.rs:136
#[cfg(all(
any(feature = "dynamic_routing", feature = "revenue_recovery"),
feature = "deja"
))]
let client = deja_transport::DejaGrpcTransport::new(client);
#[cfg(feature = "dynamic_routing")]
let dynamic_routing_connection = self
.dynamic_routing_client
.clone()
.map(|config| config.get_dynamic_routing_connection(client.clone()))
.transpose()
.expect("Failed to establish a connection with the Dynamic Routing Server")
.flatten();
#[cfg(feature = "dynamic_routing")]
let health_client = HealthCheckClient::build_connections(self, client.clone())
.await
.expect("Failed to build gRPC connections");
let unified_connector_service_client =
UnifiedConnectorServiceClient::build_connections(self).await;
#[cfg(feature = "revenue_recovery")]
let recovery_decider_client = {
match &self.recovery_decider_client {
Some(config) => {
// Validate the config first
config
.validate()
.expect("Recovery Decider configuration validation failed");
// Create the client
let client = config
.get_recovery_decider_connection(client.clone())
.expect(
"Failed to establish a connection with the Recovery Decider Server",View on GitHub (pinned to 705a321950)
Solutions
- Check the gRPC client configuration (endpoints, TLS) and service availability
When it happens
Trigger: Thrown at crates/external_services/src/grpc_client.rs:136 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of juspay/hyperswitch@705a321950 (2026-08-19).
Data as JSON: /api/errors/bd092e08c6b0bbdf.
Report an issue: GitHub.