{"record":{"id":"70f49c57c54f0aea","repo":"openai/codex","slug":"request-url-is-not-a-valid-uri-0","errorCode":null,"errorMessage":"request URL is not a valid URI: {0}","messagePattern":"request URL is not a valid URI: (.+?)","errorType":"exception","errorClass":"AwsAuthError","httpStatus":null,"severity":"error","filePath":"codex-rs/aws-auth/src/lib.rs","lineNumber":57,"sourceCode":"    pub headers: HeaderMap,\n}\n\n/// Errors returned by credential loading or SigV4 signing.\n#[derive(Debug, Error)]\npub enum AwsAuthError {\n    #[error(\"AWS service name must not be empty\")]\n    EmptyService,\n    #[error(\"AWS profile must be configured\")]\n    MissingProfile,\n    #[error(\"AWS SDK config did not resolve a credentials provider\")]\n    MissingCredentialsProvider,\n    #[error(\"AWS SDK config did not resolve a region\")]\n    MissingRegion,\n    #[error(\"failed to load AWS profiles: {0}\")]\n    ProfileLoad(#[from] aws_config::profile::ProfileFileLoadError),\n    #[error(\"failed to load AWS credentials: {0}\")]\n    Credentials(#[from] aws_credential_types::provider::error::CredentialsError),\n    #[error(\"request URL is not a valid URI: {0}\")]\n    InvalidUri(#[source] http::uri::InvalidUri),\n    #[error(\"failed to construct HTTP request for signing: {0}\")]\n    BuildHttpRequest(#[source] http::Error),\n    #[error(\"request contains a non-UTF8 header value: {0}\")]\n    InvalidHeaderValue(#[source] http::header::ToStrError),\n    #[error(\"failed to build signable request: {0}\")]\n    SigningRequest(#[source] aws_sigv4::http_request::SigningError),\n    #[error(\"failed to build SigV4 signing params: {0}\")]\n    SigningParams(String),\n    #[error(\"SigV4 signing failed: {0}\")]\n    SigningFailure(#[source] aws_sigv4::http_request::SigningError),\n}\n\n/// Loaded AWS auth context that can sign outbound HTTP requests.\n#[derive(Clone)]\npub struct AwsAuthContext {\n    credentials_provider: SharedCredentialsProvider,\n    region: String,","sourceCodeStart":39,"sourceCodeEnd":75,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/aws-auth/src/lib.rs#L39-L75","documentation":"Error \"request URL is not a valid URI: {0}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/aws-auth/src/lib.rs:57 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}