{"record":{"id":"77a647fd5217e4d7","repo":"Kuberwastaken/claurst","slug":"team-memory-pull-failed-with-status","errorCode":null,"errorMessage":"team memory pull failed with status {}","messagePattern":"team memory pull failed with status (.+?)","errorType":"http","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src-rust/crates/core/src/team_memory_sync.rs","lineNumber":161,"sourceCode":"            self.api_base,\n            urlencoding::encode(&self.repo),\n        );\n\n        let response = client\n            .get(&url)\n            .bearer_auth(&self.token)\n            .send()\n            .await\n            .context(\"team memory pull: HTTP request failed\")?;\n\n        let http_status = response.status();\n\n        if http_status.as_u16() == 404 {\n            return Ok(()); // No remote data yet\n        }\n\n        if !http_status.is_success() {\n            anyhow::bail!(\"team memory pull failed with status {}\", http_status);\n        }\n\n        // Capture ETag before consuming the response body\n        if let Some(etag) = response\n            .headers()\n            .get(\"etag\")\n            .and_then(|v| v.to_str().ok())\n        {\n            state.last_known_etag = Some(etag.to_string());\n        }\n\n        let data: TeamMemoryData = response\n            .json()\n            .await\n            .context(\"team memory pull: failed to parse response JSON\")?;\n\n        state.server_checksums.clear();\n","sourceCodeStart":143,"sourceCodeEnd":179,"githubUrl":"https://github.com/Kuberwastaken/claurst/blob/b0637c97ec34144387cbf2f74f65df6d16a6cef1/src-rust/crates/core/src/team_memory_sync.rs#L143-L179","documentation":"The team-memory pull GET (with ETag/bearer auth against the sync API) returned a non-success status other than the handled 404-no-data case — the formatted status is the server's answer, typically 5xx, rate limiting, or auth rejection. The pull aborts; local memory files stay as-is.","triggerScenarios":"Thrown at src-rust/crates/core/src/team_memory_sync.rs:161 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the pull later; transient server errors resolve on their own","If 401/403, refresh the sync token and pull again","Check the repo name and API base are correct for the team workspace"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b0637c97ec34144387cbf2f74f65df6d16a6cef1","analyzedAt":"2026-09-10T00:24:58.650Z","contentChangedAt":"2026-09-10T00:24:58.650Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}