{"record":{"id":"e43d4846bae626fb","repo":"openai/codex","slug":"invalid-dsn-error","errorCode":null,"errorMessage":"invalid DSN: {error}","messagePattern":"invalid DSN: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"codex-rs/feedback/src/lib.rs","lineNumber":453,"sourceCode":"    }\n\n    async fn upload_feedback_with_dsn(\n        &self,\n        options: FeedbackUploadOptions<'_>,\n        http_client_factory: &HttpClientFactory,\n        dsn: &str,\n    ) -> Result<()> {\n        use std::str::FromStr;\n\n        use sentry::ClientOptions;\n        use sentry::protocol::Envelope;\n        use sentry::protocol::EnvelopeItem;\n        use sentry::protocol::Event;\n        use sentry::protocol::Level;\n        use sentry::types::Dsn;\n\n        let started_at = Instant::now();\n        let dsn = Dsn::from_str(dsn).map_err(|error| anyhow!(\"invalid DSN: {error}\"))?;\n        let upload_url = dsn.envelope_api_url();\n        let sentry_options = ClientOptions::default();\n        let sentry_auth = dsn.to_auth(Some(sentry_options.user_agent.as_ref()));\n\n        let tags = self.upload_tags(\n            options.classification,\n            options.reason,\n            options.tags,\n            options.session_source.as_ref(),\n        );\n\n        let level = match options.classification {\n            \"bug\" | \"bad_result\" | \"safety_check\" => Level::Error,\n            _ => Level::Info,\n        };\n\n        let mut envelope = Envelope::new();\n        let title = format!(","sourceCodeStart":435,"sourceCodeEnd":471,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/feedback/src/lib.rs#L435-L471","documentation":"Raised in upload_feedback_with_dsn when the configured Sentry DSN string fails to parse (Dsn::from_str). The feedback cannot be uploaded because the destination endpoint is malformed; the wrapped error names the parse failure.","triggerScenarios":"Thrown at codex-rs/feedback/src/lib.rs:453 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the Sentry DSN configuration (env/config) matches the standard DSN format","Regenerate or copy the DSN from the Sentry project settings","Disable feedback upload if no valid DSN is available"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}