{"record":{"id":"1785ee51ee2e91fc","repo":"LemmyNet/lemmy","slug":"err-getting-activity-e","errorCode":null,"errorMessage":"err getting activity: {e:?}","messagePattern":"err getting activity: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/apub/objects/src/utils/functions.rs","lineNumber":100,"sourceCode":"    Box::pin(CACHE\n      .try_get_with((), async {\n        let (local_site, allowed_instances, blocked_instances) =\n          lemmy_diesel_utils::try_join_with_pool!(pool => (\n            // LocalSite may be missing\n            |pool| async {\n              Ok(SiteView::read_local(pool).await.ok().map(|s| s.local_site))\n            },\n            Instance::allowlist,\n            Instance::blocklist\n          ))?;\n\n        Ok::<_, LemmyError>(Arc::new(LocalSiteData {\n          local_site,\n          allowed_instances,\n          blocked_instances,\n        }))\n      }))\n      .await.map_err(|e| anyhow::anyhow!(\"err getting activity: {e:?}\"))?\n  )\n}\n\npub async fn check_apub_id_valid_with_strictness(\n  apub_id: &Url,\n  is_strict: bool,\n  context: &LemmyContext,\n) -> LemmyResult<()> {\n  let domain = apub_id\n    .domain()\n    .ok_or(UntranslatedError::UrlWithoutDomain)?\n    .to_string();\n  let local_instance = context.settings().get_hostname_without_port()?;\n  if domain == local_instance {\n    return Ok(());\n  }\n\n  let local_site_data = local_site_data_cached(&mut context.pool()).await?;","sourceCodeStart":82,"sourceCodeEnd":118,"githubUrl":"https://github.com/LemmyNet/lemmy/blob/439734dd638a2c06a2f907beab7dcf4646e88f86/crates/apub/objects/src/utils/functions.rs#L82-L118","documentation":"Context-wrapping error in local_site_data_cached: assembling the cached LocalSiteData (local site plus instance allowlist/blocklist) failed with cause `e`. It fires when SiteView::read_local, Instance::allowlist, or Instance::blocklist database queries error inside the try_get_with cache block; the message surfaces that underlying failure.","triggerScenarios":"Thrown at crates/apub/objects/src/utils/functions.rs:100 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped cause `e` (typically a database error on local site or instance list reads).","Verify database connectivity and the local_site / instance tables are intact.","Retry after fixing the DB issue; the cache will rebuild on the next successful call."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"439734dd638a2c06a2f907beab7dcf4646e88f86","analyzedAt":"2026-09-06T11:28:35.035Z","contentChangedAt":"2026-09-06T11:28:35.035Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}