{"record":{"id":"ee6d48edc2871501","repo":"tinyhumansai/openhuman","slug":"seltz-search-request-failed-e","errorCode":null,"errorMessage":"Seltz search request failed: {e}","messagePattern":"Seltz search request failed: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/search/tools/seltz.rs","lineNumber":291,"sourceCode":"\n        tracing::debug!(\n            query_len = query.chars().count(),\n            max_results,\n            timeout_secs = self.timeout_secs,\n            \"[seltz] POST {url}\"\n        );\n\n        let resp = self\n            .http_client\n            .post(&url)\n            .header(\"x-api-key\", api_key)\n            .header(\"Content-Type\", \"application/json\")\n            .json(&body)\n            .send()\n            .await\n            .map_err(|e| {\n                tracing::warn!(\"[seltz] request failed: {e}\");\n                anyhow::anyhow!(\"Seltz search request failed: {e}\")\n            })?;\n\n        let status = resp.status();\n        if !status.is_success() {\n            let body_text = resp.text().await.unwrap_or_default();\n            let detail = utf8_safe_prefix_at_byte_boundary(&body_text, 500);\n            tracing::warn!(\n                status = %status,\n                \"[seltz] non-2xx response: {detail}\"\n            );\n            anyhow::bail!(\"Seltz returned {status}: {detail}\");\n        }\n\n        let search_resp: SeltzSearchResponse = resp.json().await.map_err(|e| {\n            tracing::warn!(\"[seltz] failed to parse response: {e}\");\n            anyhow::anyhow!(\"Failed to parse Seltz response: {e}\")\n        })?;\n","sourceCodeStart":273,"sourceCodeEnd":309,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/search/tools/seltz.rs#L273-L309","documentation":"Transport-failure mapping in SeltzTool::execute_with_options: the reqwest POST to the Seltz endpoint (with x-api-key header) failed at the network layer — DNS failure, connection refused/reset, TLS error, or the configured timeout elapsed. The reqwest error is logged at warn and rewrapped; HTTP status failures are handled separately in the non-2xx branch.","triggerScenarios":"Thrown at src/openhuman/search/tools/seltz.rs:291 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check network connectivity and that the Seltz endpoint URL is reachable.","Retry; transient network errors often resolve.","If timeouts recur, increase the timeout or investigate proxy/firewall interference."],"exampleFix":null,"handlingStrategy":"retry","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"}