{"record":{"id":"ac028af4b61b300e","repo":"FlowiseAI/Flowise","slug":"e-ac028a","errorCode":null,"errorMessage":"${e}","messagePattern":"\\$\\{e\\}","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/components/nodes/vectorstores/Zep/Zep.ts","lineNumber":139,"sourceCode":"            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\n            const zepConfig: IZepConfig = {\n                apiUrl: baseURL,\n                collectionName: zepCollection,\n                embeddingDimensions: dimension,\n                isAutoEmbedded: false\n            }\n            if (apiKey) zepConfig.apiKey = apiKey\n\n            try {\n                await ZepVectorStore.fromDocuments(finalDocs, embeddings, 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 baseURL = nodeData.inputs?.baseURL as string\n        const zepCollection = nodeData.inputs?.zepCollection as string\n        const zepMetadataFilter = nodeData.inputs?.zepMetadataFilter\n        const dimension = nodeData.inputs?.dimension as number\n        const embeddings = nodeData.inputs?.embeddings as Embeddings\n\n        const credentialData = await getCredentialData(nodeData.credential ?? '', options)\n        const apiKey = getCredentialParam('apiKey', credentialData, nodeData)\n\n        const zepConfig: IZepConfig & Partial<ZepFilter> = {\n            apiUrl: baseURL,\n            collectionName: zepCollection,\n            embeddingDimensions: dimension,","sourceCodeStart":121,"sourceCodeEnd":157,"githubUrl":"https://github.com/FlowiseAI/Flowise/blob/abe4a8601a058047b350c260676826e21dd14101/packages/components/nodes/vectorstores/Zep/Zep.ts#L121-L157","documentation":"Wraps any failure from ZepVectorStore.fromDocuments() in the Zep node init. The zepConfig is built from baseURL, zepCollection, dimension, and optional apiKey; isAutoEmbedded is false (external embeddings supplied). `new Error(e)` flattens the underlying Zep/LangChain error to a string.","triggerScenarios":"baseURL unreachable or wrong (Zep server down / wrong port), apiKey invalid for a secured Zep, embeddingDimensions mismatch with an existing collection, collection name with illegal characters, Zep server version incompatible with the client.","commonSituations":"Zep server not running at the configured baseURL; dimension set to a value that does not match the embeddings model; using the self-hosted Zep node against Zep Cloud or vice-versa; collection created elsewhere with different dimensions.","solutions":["Inspect the text after \"Error:\" — it is the flattened Zep client error; address the root cause (connection, auth, dimension).","Verify baseURL resolves and the Zep server is reachable (curl the health endpoint).","Verify apiKey if Zep auth is enabled.","Confirm dimension matches the embeddings model output and matches any pre-existing collection.","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 baseURL reachable + dimension set\nasync function preflightZep(baseURL, dim) {\n    const ok = await fetch(baseURL + '/health').then((r) => r.ok).catch(() => false)\n    if (!ok) throw new Error('Zep server unreachable at ' + baseURL)\n    if (!dim || dim <= 0) throw new Error('embedding dimension must be set')\n}","typeGuard":"null","tryCatchPattern":"try {\n    await ZepVectorStore.fromDocuments(finalDocs, embeddings, zepConfig)\n} catch (e) {\n    throw e instanceof Error ? e : new Error(String(e))\n}","preventionTips":["Verify Zep server is up at baseURL before ingest (curl /health).","Set embeddingDimensions to match the embeddings model and any existing collection.","Do not wrap caught errors with `new Error(e)` — rethrow unchanged."],"tags":["zep","vectorstore","error-wrapping","connection"],"backgroundTag":null,"analyzedSha":"abe4a8601a058047b350c260676826e21dd14101","analyzedAt":"2026-08-12T16:04:40.823Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}