{"record":{"id":"7f6b9e16f3a96513","repo":"FlowiseAI/Flowise","slug":"e-7f6b9e","errorCode":null,"errorMessage":"${e}","messagePattern":"\\$\\{e\\}","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/components/nodes/vectorstores/ZepCloud/ZepCloud.ts","lineNumber":116,"sourceCode":"            const finalDocs = []\n            for (let i = 0; i < flattenDocs.length; i += 1) {\n                if (flattenDocs[i] && flattenDocs[i].pageContent) {\n                    finalDocs.push(new Document(flattenDocs[i]))\n                }\n            }\n            const client = new ZepClient({\n                apiKey: apiKey\n            })\n            const zepConfig = {\n                apiKey: apiKey,\n                collectionName: zepCollection,\n                client\n            }\n            try {\n                await ZepCloudVectorStore.fromDocuments(finalDocs, new FakeEmbeddings(), zepConfig)\n                return { numAdded: finalDocs.length, addedDocs: finalDocs }\n            } catch (e) {\n                throw new Error(e)\n            }\n        }\n    }\n\n    async init(nodeData: INodeData, _: string, options: ICommonObject): Promise<any> {\n        const zepCollection = nodeData.inputs?.zepCollection as string\n        const zepMetadataFilter = nodeData.inputs?.zepMetadataFilter\n        const credentialData = await getCredentialData(nodeData.credential ?? '', options)\n        const apiKey = getCredentialParam('apiKey', credentialData, nodeData)\n\n        const zepConfig: IZepCloudConfig & Partial<ZepFilter> = {\n            apiKey,\n            collectionName: zepCollection\n        }\n        if (zepMetadataFilter) {\n            zepConfig.filter = typeof zepMetadataFilter === 'object' ? zepMetadataFilter : parseJsonBody(zepMetadataFilter)\n        }\n        zepConfig.client = new ZepClient({","sourceCodeStart":98,"sourceCodeEnd":134,"githubUrl":"https://github.com/FlowiseAI/Flowise/blob/abe4a8601a058047b350c260676826e21dd14101/packages/components/nodes/vectorstores/ZepCloud/ZepCloud.ts#L98-L134","documentation":"Wraps any failure from ZepCloudVectorStore.fromDocuments() in the ZepCloud node init. Note the store is built with FakeEmbeddings because Zep Cloud auto-embeds server-side. `new Error(e)` flattens the underlying Zep Cloud client/LangChain error to a string.","triggerScenarios":"Invalid apiKey for Zep Cloud, collectionName missing or invalid, Zep Cloud API quota/throttling, network blocked to Zep Cloud endpoints, Zep client/SDK version mismatch.","commonSituations":"Wrong/revoked Zep Cloud API key; collectionName configured for a different project; FakeEmbeddings used but the project actually requires client-side embeddings (wrong node chosen); outbound network egress blocked.","solutions":["Inspect the text after \"Error:\" for the flattened Zep Cloud error (auth, not-found, quota) and address it.","Verify the Zep Cloud apiKey is current and has access to the project.","Verify collectionName exists or can be auto-created in the Zep Cloud project.","Confirm outbound connectivity to Zep Cloud.","Patch the catch to rethrow e unchanged."],"exampleFix":"// before\n} catch (e) {\n    throw new Error(e)\n}\n\n// after\n} catch (e) {\n    throw e instanceof Error ? e : new Error(String(e))\n}","handlingStrategy":"try-catch","validationCode":"// Pre-flight: verify Zep Cloud apiKey present + collection name non-empty\nfunction validateZepCloudConfig(apiKey, collectionName) {\n    if (!apiKey) throw new Error('Zep Cloud apiKey is required')\n    if (!collectionName) throw new Error('Zep Cloud collectionName is required')\n}","typeGuard":"null","tryCatchPattern":"try {\n    await ZepCloudVectorStore.fromDocuments(finalDocs, new FakeEmbeddings(), zepConfig)\n} catch (e) {\n    throw e instanceof Error ? e : new Error(String(e))\n}","preventionTips":["Verify the Zep Cloud apiKey is current and scoped to the right project.","Confirm outbound egress to Zep Cloud endpoints is allowed.","Re-throw caught errors unchanged; do not flatten with `new Error(e)`."],"tags":["zep-cloud","vectorstore","error-wrapping","auth"],"backgroundTag":null,"analyzedSha":"abe4a8601a058047b350c260676826e21dd14101","analyzedAt":"2026-08-12T16:04:40.823Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}