{"record":{"id":"deb4c62e205867e7","repo":"hasura/graphql-engine","slug":"invalid-value-specified-for-header-header-name","errorCode":null,"errorMessage":"Invalid value specified for header {header_name}","messagePattern":"Invalid value specified for header (.+?)","errorType":"validation","errorClass":"DataConnectorError::InvalidHeaderValue","httpStatus":null,"severity":"error","filePath":"v3/crates/metadata-resolve/src/stages/data_connectors/error.rs","lineNumber":28,"sourceCode":"    }\n}\n\n#[derive(Debug, thiserror::Error)]\n#[error(\"The data connector {data_connector_name} has an error: {error}\")]\npub struct NamedDataConnectorError {\n    pub data_connector_name: Qualified<DataConnectorName>,\n    pub error: DataConnectorError,\n}\n\n#[derive(Debug, thiserror::Error)]\npub enum DataConnectorError {\n    #[error(\"the data connector is defined more than once\")]\n    DuplicateDataConnectorDefinition,\n    #[error(\"The url for the data connector is invalid: {error}\")]\n    InvalidDataConnectorUrl { error: url::ParseError },\n    #[error(\"Invalid header name {header_name} specified\")]\n    InvalidHeaderName { header_name: String },\n    #[error(\"Invalid value specified for header {header_name}\")]\n    InvalidHeaderValue { header_name: String },\n    #[error(\"{0}\")]\n    NdcValidationError(NDCValidationError),\n    #[error(\n        \"The version specified in the capabilities (\\\"{version}\\\") is an invalid version: {error}\"\n    )]\n    InvalidNdcVersion {\n        version: String,\n        error: semver::Error,\n    },\n    #[error(\n        \"The version specified in the capabilities (\\\"{version}\\\") is not compatible with the schema version specified. The version requirement is {requirement}\"\n    )]\n    IncompatibleNdcVersion {\n        version: String,\n        requirement: semver::VersionReq,\n    },\n}","sourceCodeStart":10,"sourceCodeEnd":46,"githubUrl":"https://github.com/hasura/graphql-engine/blob/724551b9ae87845594ef0408cff0e50eb6c90dc5/v3/crates/metadata-resolve/src/stages/data_connectors/error.rs#L10-L46","documentation":"A header value configured on the data connector is not a valid HTTP header value (rejected by the header value parser), though the name was fine.","triggerScenarios":"Setting a header whose value contains invalid bytes/control characters, or non-UTF8 data; commonly a malformed auth token.","commonSituations":"Badly base64-encoded credentials, environment variables injecting newlines/control chars, or template syntax left in the value.","solutions":["Verify the header value encoding","Ensure env-var interpolation produced the expected value","Rebuild metadata"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"http::HeaderValue::from_str(&value)?;","typeGuard":null,"tryCatchPattern":"Catch InvalidHeaderValue and report which header failed.","preventionTips":["Validate secrets/tokens are correctly encoded","Trim whitespace and control chars from env-injected values"],"tags":["data-connector","headers","http"],"backgroundTag":"invalid-http-header","analyzedSha":"724551b9ae87845594ef0408cff0e50eb6c90dc5","analyzedAt":"2026-08-28T07:32:55.105Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}