Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
fix(router): Change role info not found in redis error from 5xx to 4xx (#10949)
spritianeja036e3e9684f57a
diff --git a/crates/router/src/services/authorization.rs b/crates/router/src/services/authorization.rsindex 947e0860ae..f75bb497ef 100644--- a/crates/router/src/services/authorization.rs+++ b/crates/router/src/services/authorization.rs@@ -66,7 +66,9 @@ whereredis_conn.get_and_deserialize_key(&get_cache_key_from_role_id(role_id).into(), "RoleInfo").await- .change_context(ApiErrorResponse::InternalServerError)+ .change_context(ApiErrorResponse::GenericNotFoundError {+ message: "Role info not found in cache".to_string(),+ })}pub fn get_cache_key_from_role_id(role_id: &str) -> String {