{"record":{"id":"b82d22e4a05e87a4","repo":"openai/codex","slug":"request-contains-a-non-utf8-header-value-0","errorCode":null,"errorMessage":"request contains a non-UTF8 header value: {0}","messagePattern":"request contains a non-UTF8 header value: (.+?)","errorType":"exception","errorClass":"AwsAuthError","httpStatus":null,"severity":"error","filePath":"codex-rs/aws-auth/src/lib.rs","lineNumber":61,"sourceCode":"#[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,\n    service: String,\n}\n\nimpl std::fmt::Debug for AwsAuthContext {","sourceCodeStart":43,"sourceCodeEnd":79,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/aws-auth/src/lib.rs#L43-L79","documentation":"Error \"request contains a non-UTF8 header value: {0}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/aws-auth/src/lib.rs:61 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"}