{"record":{"id":"420ea789e4bf273d","repo":"n8n-io/n8n","slug":"api-url-is-required-to-use-zep-open-source","errorCode":null,"errorMessage":"API url is required to use Zep Open Source","messagePattern":"API url is required to use Zep Open Source","errorType":"exception","errorClass":"NodeOperationError","httpStatus":null,"severity":"error","filePath":"packages/@n8n/nodes-langchain/nodes/memory/MemoryZep/MemoryZep.node.ts","lineNumber":161,"sourceCode":"\t\tlet memory: BaseChatMemory;\n\n\t\tif (credentials.cloud) {\n\t\t\tif (!credentials.apiKey) {\n\t\t\t\tthrow new NodeOperationError(this.getNode(), 'API key is required to use Zep Cloud');\n\t\t\t}\n\t\t\tmemory = new WhiteSpaceTrimmedZepCloudMemory({\n\t\t\t\tsessionId,\n\t\t\t\tapiKey: credentials.apiKey,\n\t\t\t\tmemoryType: 'perpetual',\n\t\t\t\tmemoryKey: 'chat_history',\n\t\t\t\treturnMessages: true,\n\t\t\t\tinputKey: 'input',\n\t\t\t\toutputKey: 'output',\n\t\t\t\tseparateMessages: false,\n\t\t\t});\n\t\t} else {\n\t\t\tif (!credentials.apiUrl) {\n\t\t\t\tthrow new NodeOperationError(this.getNode(), 'API url is required to use Zep Open Source');\n\t\t\t}\n\t\t\tmemory = new ZepMemory({\n\t\t\t\tsessionId,\n\t\t\t\tbaseURL: credentials.apiUrl,\n\t\t\t\tapiKey: credentials.apiKey,\n\t\t\t\tmemoryKey: 'chat_history',\n\t\t\t\treturnMessages: true,\n\t\t\t\tinputKey: 'input',\n\t\t\t\toutputKey: 'output',\n\t\t\t});\n\t\t}\n\n\t\treturn {\n\t\t\tresponse: logWrapper(memory, this),\n\t\t};\n\t}\n}\n","sourceCodeStart":143,"sourceCodeEnd":179,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/nodes-langchain/nodes/memory/MemoryZep/MemoryZep.node.ts#L143-L179","documentation":"Fires in MemoryZep.supplyData when the Zep credential targets self-hosted Zep (cloud: false) but no API URL was provided. The open-source Zep server has no default endpoint the node could fall back to, so the memory cannot be constructed; the error surfaces the missing-credential problem during node configuration instead of as a connection failure mid-run.","triggerScenarios":"Thrown at packages/@n8n/nodes-langchain/nodes/memory/MemoryZep/MemoryZep.node.ts:161 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set the Zep server URL in the zepApi credential","Or switch to Zep Cloud mode with an API key"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5ac6606e81f67bb9534255570cd4e86fd8101eee","analyzedAt":"2026-08-12T05:26:35.080Z","contentChangedAt":"2026-08-12T05:26:35.080Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}