{"record":{"id":"392e188969bce271","repo":"tinyhumansai/openhuman","slug":"unsupported-http-method-method-supported-get","errorCode":null,"errorMessage":"Unsupported HTTP method: {method}. Supported: GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS","messagePattern":"Unsupported HTTP method: (.+?)\\. Supported: GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/tools/impl/network/http_request.rs","lineNumber":103,"sourceCode":"            max_response_size,\n            timeout_secs,\n        }\n    }\n\n    async fn validate_url(&self, raw_url: &str) -> anyhow::Result<String> {\n        validate_url_with_dns_check(raw_url, &self.allowed_domains).await\n    }\n\n    fn validate_method(&self, method: &str) -> anyhow::Result<reqwest::Method> {\n        match method.to_uppercase().as_str() {\n            \"GET\" => Ok(reqwest::Method::GET),\n            \"POST\" => Ok(reqwest::Method::POST),\n            \"PUT\" => Ok(reqwest::Method::PUT),\n            \"DELETE\" => Ok(reqwest::Method::DELETE),\n            \"PATCH\" => Ok(reqwest::Method::PATCH),\n            \"HEAD\" => Ok(reqwest::Method::HEAD),\n            \"OPTIONS\" => Ok(reqwest::Method::OPTIONS),\n            _ => anyhow::bail!(\"Unsupported HTTP method: {method}. Supported: GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS\"),\n        }\n    }\n\n    fn parse_headers(&self, headers: &serde_json::Value) -> Vec<(String, String)> {\n        let mut result = Vec::new();\n        if let Some(obj) = headers.as_object() {\n            for (key, value) in obj {\n                if let Some(str_val) = value.as_str() {\n                    result.push((key.clone(), str_val.to_string()));\n                }\n            }\n        }\n        result\n    }\n\n    fn redact_headers_for_display(headers: &[(String, String)]) -> Vec<(String, String)> {\n        headers\n            .iter()","sourceCodeStart":85,"sourceCodeEnd":121,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/tools/impl/network/http_request.rs#L85-L121","documentation":"validate_method uppercased the method string and found no match among the seven methods the tool maps to reqwest Method objects, so the HTTP request is rejected before any URL is contacted.","triggerScenarios":"Thrown at src/openhuman/tools/impl/network/http_request.rs:103 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use one of GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS","Check the method field for typos or non-standard verbs"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}