{"record":{"id":"68536164da446b1f","repo":"tinyhumansai/openhuman","slug":"querit-search-request-failed-e","errorCode":null,"errorMessage":"Querit search request failed: {e}","messagePattern":"Querit search request failed: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/search/tools/querit.rs","lineNumber":478,"sourceCode":"        tracing::debug!(\n            query_len = query.chars().count(),\n            max_results,\n            timeout_secs = self.timeout_secs,\n            \"[querit] POST {url}\"\n        );\n\n        let resp = self\n            .http_client\n            .post(&url)\n            .bearer_auth(api_key)\n            .header(\"Content-Type\", \"application/json\")\n            .header(\"Accept\", \"application/json\")\n            .json(&body)\n            .send()\n            .await\n            .map_err(|e| {\n                tracing::warn!(\"[querit] request failed: {e}\");\n                anyhow::anyhow!(\"Querit 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            tracing::warn!(\n                status = %status,\n                body_len = body_text.len(),\n                \"[querit] non-2xx response from Querit\"\n            );\n            anyhow::bail!(\"Querit returned non-2xx status {status}\");\n        }\n\n        let search_resp = Self::decode_response(resp.json().await.map_err(|e| {\n            tracing::warn!(\"[querit] failed to read response JSON: {e}\");\n            anyhow::anyhow!(\"Failed to read Querit response JSON: {e}\")\n        })?)?;\n","sourceCodeStart":460,"sourceCodeEnd":496,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/search/tools/querit.rs#L460-L496","documentation":"Transport-failure mapping in QueritTool::execute_with_options: the reqwest POST to the Querit endpoint (with bearer auth) failed at the network layer — DNS failure, connection refused/reset, TLS error, or the configured timeout elapsed. The underlying reqwest error is logged at warn and rewrapped with this message; it is not an HTTP-status failure, which is handled separately as a non-2xx bail.","triggerScenarios":"Thrown at src/openhuman/search/tools/querit.rs:478 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check network connectivity and that the Querit endpoint URL is reachable.","Retry the search; transient network errors often resolve.","If timeouts recur, increase the tool's configured timeout or check 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"}