{"record":{"id":"c8e1512376162657","repo":"zed-industries/zed","slug":"post-failed-with-status-code","errorCode":null,"errorMessage":"POST {} failed with status code {:?}, {:?}","messagePattern":"POST (.+?) failed with status code (.+?), (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/livekit_api/src/livekit_api.rs","lineNumber":104,"sourceCode":"        );\n        let url = format!(\"{}/{}\", self.url, path);\n        log::info!(\"Request {}: {:?}\", url, body);\n        async move {\n            let token = token?;\n            let response = client\n                .post(&url)\n                .header(CONTENT_TYPE, \"application/protobuf\")\n                .bearer_auth(token)\n                .body(body.encode_to_vec())\n                .send()\n                .await?;\n\n            if response.status().is_success() {\n                log::info!(\"Response {}: {:?}\", url, response.status());\n                Ok(Res::decode(response.bytes().await?)?)\n            } else {\n                log::error!(\"Response {}: {:?}\", url, response.status());\n                anyhow::bail!(\n                    \"POST {} failed with status code {:?}, {:?}\",\n                    url,\n                    response.status(),\n                    response.text().await\n                );\n            }\n        }\n    }\n}\n\n#[async_trait]\nimpl Client for LiveKitClient {\n    fn url(&self) -> &str {\n        &self.url\n    }\n\n    async fn create_room(&self, name: String) -> Result<()> {\n        let _: proto::Room = self","sourceCodeStart":86,"sourceCodeEnd":122,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/livekit_api/src/livekit_api.rs#L86-L122","documentation":"LiveKit API POST request returned a non-success HTTP status; the status and response body are formatted into this error. Raised from the generic request helper used by create_room, delete_room, remove_participant, and update_participant.","triggerScenarios":"Thrown at crates/livekit_api/src/livekit_api.rs:104 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the LiveKit server URL and that the service is reachable","Check authentication/token generation for expiry or wrong key","Retry the request; transient 5xx errors often resolve","Inspect the logged status and body for the server-side cause"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f4178619acd0d47ea1f76a2025c42962c6d6638c","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}