{"record":{"id":"0936333856d28af1","repo":"juspay/hyperswitch","slug":"calida-requires-headerkey-auth-type","errorCode":null,"errorMessage":"Calida requires HeaderKey auth type","messagePattern":"Calida requires HeaderKey auth type","errorType":"exception","errorClass":"ApiErrorResponse","httpStatus":500,"severity":"error","filePath":"crates/router/src/core/unified_connector_service/connector_config.rs","lineNumber":941,"sourceCode":"                    terminal_id: key2.clone(),\n                }),\n                _ => Err(err(\"Fiservcommercehub requires MultiAuthKey auth type\")),\n            },\n            Connector::Calida => match auth {\n                ConnectorAuthType::HeaderKey { api_key } => {\n                    let calida_meta = metadata\n                        .map(|m| {\n                            serde_json::from_value::<CalidaMetadata>(m.clone())\n                                .map_err(|_| err(\"Invalid Calida metadata format\"))\n                        })\n                        .transpose()?;\n\n                    Ok(Self::Calida {\n                        api_key: api_key.clone(),\n                        shop_name: calida_meta.as_ref().map(|m| m.shop_name.clone()),\n                    })\n                }\n                _ => Err(err(\"Calida requires HeaderKey auth type\")),\n            },\n            Connector::Celero => match auth {\n                ConnectorAuthType::HeaderKey { api_key } => Ok(Self::Celero {\n                    api_key: api_key.clone(),\n                }),\n                _ => Err(err(\"Celero requires HeaderKey auth type\")),\n            },\n            Connector::Helcim => match auth {\n                ConnectorAuthType::HeaderKey { api_key } => Ok(Self::Helcim {\n                    api_key: api_key.clone(),\n                }),\n                _ => Err(err(\"Helcim requires HeaderKey auth type\")),\n            },\n            Connector::Multisafepay => match auth {\n                ConnectorAuthType::HeaderKey { api_key } => Ok(Self::Multisafepay {\n                    api_key: api_key.clone(),\n                }),\n                _ => Err(err(\"Multisafepay requires HeaderKey auth type\")),","sourceCodeStart":923,"sourceCodeEnd":959,"githubUrl":"https://github.com/juspay/hyperswitch/blob/3093f22cc46b46415cca152ea0b234277b251ecd/crates/router/src/core/unified_connector_service/connector_config.rs#L923-L959","documentation":"Error \"Calida requires HeaderKey auth type\" thrown in juspay/hyperswitch.","triggerScenarios":"Thrown at crates/router/src/core/unified_connector_service/connector_config.rs:886 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Configure the merchant connector account for Calida with the HeaderKey connector_auth_type","Recreate/update the connector account credentials to match the HeaderKey schema"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3093f22cc46b46415cca152ea0b234277b251ecd","analyzedAt":"2026-08-23T00:36:32.882Z","contentChangedAt":"2026-08-23T00:36:32.882Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}