{"record":{"id":"ed6b64ae69bf6133","repo":"juspay/hyperswitch","slug":"external-vault-connector-create-call-failed-resp","errorCode":null,"errorMessage":"External Vault Connector Create Call Failed ${response.body.error.message}","messagePattern":"External Vault Connector Create Call Failed (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"cypress-tests/cypress/support/commands.js","lineNumber":1785,"sourceCode":"              if (response.status === 200) {\n                expect(response.body.connector_name).to.equal(\n                  createConnectorBody.connector_name\n                );\n                expect(response.body.connector_type).to.equal(\n                  \"vault_processor\"\n                );\n                expect(response.body).to.have.property(\"merchant_connector_id\")\n                  .and.to.not.be.empty;\n                globalState.set(\n                  `${mcaPrefix}Id`,\n                  response.body.merchant_connector_id\n                );\n              } else {\n                cy.task(\n                  \"cli_log\",\n                  \"response status -> \" + JSON.stringify(response.status)\n                );\n                throw new Error(\n                  `External Vault Connector Create Call Failed ${response.body.error.message}`\n                );\n              }\n            } else {\n              expect(response.status).to.equal(expectedStatus);\n            }\n          });\n        });\n      }\n    );\n  }\n);\n\nCypress.Commands.add(\n  \"createAuthenticationProcessorConnectorTest\",\n  (\n    createConnectorBody,\n    globalState,","sourceCodeStart":1767,"sourceCodeEnd":1803,"githubUrl":"https://github.com/juspay/hyperswitch/blob/9b8b89dc378b62c9a6feda647bad4719d2de7699/cypress-tests/cypress/support/commands.js#L1767-L1803","documentation":"Thrown by the externalVaultConnectorCreateCallTest command (cypress-tests/cypress/support/commands.js:1785) when creating a vault_processor connector via POST /account/{merchantId}/connectors returns non-200 while success was expected. On success it stores the new merchant_connector_id under `${mcaPrefix}Id` (default 'vaultConnector').","triggerScenarios":"Vault-processor credentials in creds.json invalid (wrong external-vault API keys); the named connector not supported as connector_type='vault_processor'; missing or incompatible fields in createConnectorBody; profile_id mismatch; a duplicate vault connector already on the profile.","commonSituations":"Running vault-related specs without external-vault service credentials configured for the environment; the vault_processor connector type only existing in newer API versions; environment-specific creds files diverging.","solutions":["Read the cli_log'd status and server message — 400 usually means body/creds shape, 401 api-key, 500 backend or vault unreachable","Verify the creds.json entry for createConnectorBody.connector_name is present and current","Confirm the target environment supports external vault / vault_processor connectors","Check the profile under `${profilePrefix}Id` exists","Delete duplicates left by partial prior runs"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":"cy.readFile(globalState.get('connectorAuthFilePath')).then((json) => {\n  const { authDetails } = getValueByKey(JSON.stringify(json), createConnectorBody.connector_name);\n  if (!authDetails) {\n    throw new Error(`No vault creds for ${createConnectorBody.connector_name} — add them or skip vault specs`);\n  }\n});","typeGuard":null,"tryCatchPattern":"cy.on('fail', (err) => {\n  if (err.message.includes('External Vault Connector Create Call Failed')) {\n    throw new Error(`Vault connector setup failed — check vault creds/environment support: ${err.message}`);\n  }\n  throw err;\n});","preventionTips":["Provision external-vault creds per environment before enabling vault suites","Confirm the environment supports the vault_processor connector type","Watch the cli_log status: 500 often means the vault service is unreachable"],"tags":["cypress","hyperswitch","connectors","vault","external-vault"],"backgroundTag":null,"analyzedSha":"9b8b89dc378b62c9a6feda647bad4719d2de7699","analyzedAt":"2026-08-16T09:01:53.433Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}