Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(composio): handle HTTP error responses with structured error types

Steven Enamakel99a837caefbd
diff --git a/crates/openhuman-core/src/integrations/composio/tools/direct/http_errors.rs b/crates/openhuman-core/src/integrations/composio/tools/direct/http_errors.rs
index c0e430da6c..9ba0e007e8 100644
--- a/crates/openhuman-core/src/integrations/composio/tools/direct/http_errors.rs
+++ b/crates/openhuman-core/src/integrations/composio/tools/direct/http_errors.rs
@@ -20,7 +20,7 @@ pub(super) async fn response_error(resp: reqwest::Response) -> String {
format!("HTTP {}", status.as_u16())
}
-fn sanitize_error_message(message: &str) -> String {
+pub(super) fn sanitize_error_message(message: &str) -> String {
let mut sanitized = message.replace('\n', " ");
for marker in [
"connected_account_id",