{"record":{"id":"f7933582030f74af","repo":"zed-industries/zed","slug":"request-to-cloud-failed-with-status-status","errorCode":null,"errorMessage":"request to Cloud failed with status {status}","messagePattern":"request to Cloud failed with status (.+?)","errorType":"http","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/collab/src/services/user_service.rs","lineNumber":91,"sourceCode":"            .context(\"failed to build request\")?;\n\n        let response = self\n            .http_client\n            .execute(request)\n            .await\n            .context(\"failed to send request to Cloud\")?;\n\n        let status = response.status();\n        match response.error_for_status() {\n            Ok(response) => {\n                let response_body: T = response\n                    .json()\n                    .await\n                    .context(\"failed to parse response body\")?;\n\n                Ok(response_body)\n            }\n            Err(_err) => Err(anyhow!(\"request to Cloud failed with status {status}\",))?,\n        }\n    }\n}\n\n#[async_trait]\nimpl UserService for CloudUserService {\n    async fn get_users_by_ids(&self, ids: Vec<UserId>) -> Result<Vec<User>> {\n        let response_body: LookUpUsersByLegacyIdResponse = self\n            .send_request(\n                self.http_client\n                    .post(format!(\n                        \"{}/internal/users/look_up_by_legacy_id\",\n                        self.zed_cloud_url\n                    ))\n                    .json(&LookUpUsersByLegacyIdBody {\n                        legacy_user_ids: ids.into_iter().map(|id| id.0).collect(),\n                    }),\n            )","sourceCodeStart":73,"sourceCodeEnd":109,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/collab/src/services/user_service.rs#L73-L109","documentation":"user_service::send_request got a non-success HTTP status from the Zed Cloud API (error_for_status failed); the message reports the status code. The Cloud service rejected a user lookup/search request made by the collab server.","triggerScenarios":"Thrown at crates/collab/src/services/user_service.rs:91 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the status: 401/403 suggests expired Cloud credentials, 5xx suggests a Cloud outage","Retry after transient failures; surface the status to operators for diagnosis","Verify the collab server's Cloud API configuration"],"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-23T08:17:48.524Z"}