{"record":{"id":"068425c3b0d46c5e","repo":"tinyhumansai/openhuman","slug":"title-is-required","errorCode":null,"errorMessage":"title is required","messagePattern":"title is required","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/api/rest.rs","lineNumber":1058,"sourceCode":"        self.authed_json(\n            bearer_jwt,\n            Method::POST,\n            &format!(\"channels/{encoded}/reactions\"),\n            Some(reaction_body),\n        )\n        .await\n    }\n\n    /// Creates a new thread in a communication channel.\n    pub async fn create_channel_thread(\n        &self,\n        channel: &str,\n        bearer_jwt: &str,\n        title: &str,\n    ) -> Result<Value> {\n        let channel = channel.trim().trim_matches('/');\n        anyhow::ensure!(!channel.is_empty(), \"channel is required\");\n        anyhow::ensure!(!title.trim().is_empty(), \"title is required\");\n        let encoded = urlencoding::encode(channel);\n        let body = serde_json::json!({ \"title\": title.trim() });\n        self.authed_json(\n            bearer_jwt,\n            Method::POST,\n            &format!(\"channels/{encoded}/threads\"),\n            Some(body),\n        )\n        .await\n    }\n\n    /// Updates an existing thread (e.g., closing or reopening it).\n    pub async fn update_channel_thread(\n        &self,\n        channel: &str,\n        bearer_jwt: &str,\n        thread_id: &str,\n        action: &str,","sourceCodeStart":1040,"sourceCodeEnd":1076,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/api/rest.rs#L1040-L1076","documentation":"create_channel_thread trims the proposed title and found it empty; threads require a non-empty name, so the request is rejected before the backend is called.","triggerScenarios":"Thrown at src/api/rest.rs:1058 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide a non-empty title string","Check that the title argument is not only whitespace"],"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"}