{"record":{"id":"f685ce8ebba2077c","repo":"tinyhumansai/openhuman","slug":"sentry-is-not-initialized-in-this-binary-no-dsn","errorCode":null,"errorMessage":"Sentry is not initialized in this binary — no DSN is resolvable. Set OPENHUMAN_CORE_SENTRY_DSN (or the legacy OPENHUMAN_SENTRY_DSN alias) in the environment (or rebuild with it defined at compile time) and try again.","messagePattern":"Sentry is not initialized in this binary — no DSN is resolvable\\. Set OPENHUMAN_CORE_SENTRY_DSN \\(or the legacy OPENHUMAN_SENTRY_DSN alias\\) in the environment \\(or rebuild with it defined at compile time\\) and try again\\.","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/core/cli.rs","lineNumber":280,"sourceCode":"                );\n                println!(\"at runtime, or baked into the binary at build time via option_env!. On\");\n                println!(\"success, prints the event UUID to stdout.\");\n                return Ok(());\n            }\n            other => return Err(anyhow::anyhow!(\"unknown sentry-test arg: {other}\")),\n        }\n    }\n\n    let client = sentry::Hub::current().client();\n    let dsn_host = client\n        .as_deref()\n        .and_then(|c| c.dsn())\n        .map(|d| d.host().to_string());\n\n    match &dsn_host {\n        Some(host) => eprintln!(\"[sentry-test] Sentry client active (dsn host: {host})\"),\n        None => {\n            return Err(anyhow::anyhow!(\n                \"Sentry is not initialized in this binary — no DSN is resolvable. \\\n                 Set OPENHUMAN_CORE_SENTRY_DSN (or the legacy OPENHUMAN_SENTRY_DSN alias) \\\n                 in the environment (or rebuild with it defined at compile time) and try again.\"\n            ));\n        }\n    }\n\n    let msg = message.unwrap_or_else(|| \"openhuman sentry-test ping\".to_string());\n\n    sentry::configure_scope(|scope| {\n        scope.set_tag(\"test\", \"true\");\n        scope.set_tag(\"source\", \"sentry-test-cli\");\n    });\n\n    let event_id = sentry::capture_message(&msg, sentry::Level::Error);\n\n    if let Some(c) = client {\n        if !c.flush(Some(std::time::Duration::from_secs(5))) {","sourceCodeStart":262,"sourceCodeEnd":298,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/core/cli.rs#L262-L298","documentation":"Error \"Sentry is not initialized in this binary — no DSN is resolvable. Set OPENHUMAN_CORE_SENTRY_DSN (or the legacy OPENHUMAN_SENTRY_DSN alias) in the environment (or rebuild with it defined at compile time) and try again.\" thrown in tinyhumansai/openhuman.","triggerScenarios":"Thrown at src/core/cli.rs:280 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set OPENHUMAN_CORE_SENTRY_DSN (or legacy alias OPENHUMAN_SENTRY_DSN) in the environment and retry","Or rebuild with the DSN defined at compile time via option_env!","Verify with `openhuman sentry-test --help` for the expected setup"],"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-23T08:17:48.524Z"}