{"record":{"id":"d052058a226c8d60","repo":"zeroclaw-labs/zeroclaw","slug":"jina-ai-api-key-not-configured-decrypted-value-is","errorCode":null,"errorMessage":"Jina AI API key not configured (decrypted value is empty)","messagePattern":"Jina AI API key not configured \\(decrypted value is empty\\)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/zeroclaw-tools/src/web_search_tool.rs","lineNumber":544,"sourceCode":"            .filter(|k| !k.is_empty())\n            .ok_or_else(|| {\n                ::zeroclaw_log::record!(\n                    ERROR,\n                    ::zeroclaw_log::Event::new(module_path!(), ::zeroclaw_log::Action::Reject)\n                        .with_outcome(::zeroclaw_log::EventOutcome::Failure)\n                        .with_attrs(::serde_json::json!({\"search_provider\": \"jina\"})),\n                    \"web_search: Jina AI API key not configured\"\n                );\n                anyhow::Error::msg(\"Jina AI API key not configured\")\n            })?;\n\n        if zeroclaw_config::secrets::SecretStore::is_encrypted(&raw_key) {\n            let zeroclaw_dir = self.config_path.parent().unwrap_or_else(|| Path::new(\".\"));\n            let store =\n                zeroclaw_config::secrets::SecretStore::new(zeroclaw_dir, self.secrets_encrypt);\n            let plaintext = store.decrypt(&raw_key)?;\n            if plaintext.is_empty() {\n                anyhow::bail!(\"Jina AI API key not configured (decrypted value is empty)\");\n            }\n            Ok(plaintext)\n        } else {\n            Ok(raw_key)\n        }\n    }\n\n    async fn search_jina(&self, query: &str) -> anyhow::Result<String> {\n        let api_key = self.resolve_jina_api_key()?;\n\n        let builder = reqwest::Client::builder()\n            .timeout(Duration::from_secs(self.timeout_secs))\n            .user_agent(\"ZeroClaw/1.0 (https://zeroclaw.ai)\");\n        let builder =\n            zeroclaw_config::schema::apply_runtime_proxy_to_builder(builder, \"tool.web_search\");\n        let client = builder.build()?;\n\n        // Jina Search API requires POST with JSON body","sourceCodeStart":526,"sourceCodeEnd":562,"githubUrl":"https://github.com/zeroclaw-labs/zeroclaw/blob/88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc/crates/zeroclaw-tools/src/web_search_tool.rs#L526-L562","documentation":"Error \"Jina AI API key not configured (decrypted value is empty)\" thrown in zeroclaw-labs/zeroclaw.","triggerScenarios":"Thrown at crates/zeroclaw-tools/src/web_search_tool.rs:544 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set the Jina AI API key in the web_search configuration or via `zeroclaw quickstart`.","Verify the decrypted secret value is not empty; store the key again if it was saved incorrectly."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc","analyzedAt":"2026-08-23T01:07:41.857Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}