Skip to content

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

chore(connector): [fiuu] log response body when no key-value pairs are found (#14607)

Akshaya Shankar91e730c83969
diff --git a/crates/hyperswitch_connectors/src/connectors/fiuu.rs b/crates/hyperswitch_connectors/src/connectors/fiuu.rs
index 876e15ecb4..003a14595e 100644
--- a/crates/hyperswitch_connectors/src/connectors/fiuu.rs
+++ b/crates/hyperswitch_connectors/src/connectors/fiuu.rs
@@ -116,6 +116,18 @@ where
}
}
}
+ // No `key=value` lines found: the body carries no parsed payment fields, so log it in full
+ // to see what Fiuu actually returned
+ if json.is_empty() {
+ router_env::logger::error!(
+ response_len = data.len(),
+ response_lines = response_str.lines().count(),
+ is_blank = response_str.trim().is_empty(),
+ response_body = %response_str,
+ "No key-value pairs found in Fiuu response for type {}",
+ type_name::<T>()
+ );
+ }
if !miscellaneous.is_empty() {
let misc_value = serde_json::to_value(miscellaneous).map_err(|e| {
router_env::logger::error!("Error serializing miscellaneous data: {:?}", e);