{"record":{"id":"c508eb7d4843333f","repo":"hasura/graphql-engine","slug":"invalid-header-name-header-name-specified","errorCode":null,"errorMessage":"Invalid header name {header_name} specified","messagePattern":"Invalid header name (.+?) specified","errorType":"validation","errorClass":"DataConnectorError::InvalidHeaderName","httpStatus":null,"severity":"error","filePath":"v3/crates/metadata-resolve/src/stages/data_connectors/error.rs","lineNumber":26,"sourceCode":"    fn create_error_context(&self) -> Option<error_context::Context> {\n        None\n    }\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,","sourceCodeStart":8,"sourceCodeEnd":44,"githubUrl":"https://github.com/hasura/graphql-engine/blob/724551b9ae87845594ef0408cff0e50eb6c90dc5/v3/crates/metadata-resolve/src/stages/data_connectors/error.rs#L8-L44","documentation":"A header name configured on the data connector is not a valid HTTP header name (rejected by the header name parser).","triggerScenarios":"Setting headers on a connector with an invalid name, e.g. containing spaces, non-ASCII characters, or invalid punctuation.","commonSituations":"Copy-pasting header names with hidden characters, using 'X My Header' style names, or template placeholders left in the name.","solutions":["Fix the header name to valid HTTP token syntax (letters, digits, '-', no spaces)","Rebuild metadata"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"http::HeaderName::from_bytes(name.as_bytes())?;","typeGuard":null,"tryCatchPattern":"Catch InvalidHeaderName and report the offending header name.","preventionTips":["Use standard header-name syntax","Avoid copy-pasting headers from prose/docs"],"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"}