Describe the bug
When upserting using the Custom JS Document Loader, I get the following error:
Error: ReferenceError: fetch is not defined
at CustomDocumentLoader_DocumentLoaders.init (/usr/local/lib/node_modules/flowise/node_modules/flowise-components/dist/nodes/documentloaders/CustomDocumentLoader/CustomDocumentLoader.js:135:19)
at async buildFlow (/usr/local/lib/node_modules/flowise/dist/utils/index.js:445:36)
at async upsertVector (/usr/local/lib/node_modules/flowise/dist/utils/upsertVector.js:114:32)
at async Object.upsertVectorMiddleware (/usr/local/lib/node_modules/flowise/dist/services/vectors/index.js:9:16)
at async createInternalUpsert (/usr/local/lib/node_modules/flowise/dist/controllers/vectors/index.js:28:29)
2024-06-17 11:57:38 [ERROR]: [server]: Error: Error: ReferenceError: fetch is not defined
Error: Error: ReferenceError: fetch is not defined
at buildFlow (/usr/local/lib/node_modules/flowise/dist/utils/index.js:493:19)
at async upsertVector (/usr/local/lib/node_modules/flowise/dist/utils/upsertVector.js:114:32)
at async Object.upsertVectorMiddleware (/usr/local/lib/node_modules/flowise/dist/services/vectors/index.js:9:16)
at async createInternalUpsert (/usr/local/lib/node_modules/flowise/dist/controllers/vectors/index.js:28:29)
To Reproduce
Steps to reproduce the behavior:
Run flowise with npx and create a simple flow using Custom Document Loader & Vector Store, using fetch() function in JS.
Additional context
I have the newest version of Node.js and also installed fetch with "npm install node-fetch" and fetch still appears as not defined for me.
Describe the bug When upserting using the Custom JS Document Loader, I get the following error:
Error: ReferenceError: fetch is not defined at CustomDocumentLoader_DocumentLoaders.init (/usr/local/lib/node_modules/flowise/node_modules/flowise-components/dist/nodes/documentloaders/CustomDocumentLoader/CustomDocumentLoader.js:135:19) at async buildFlow (/usr/local/lib/node_modules/flowise/dist/utils/index.js:445:36) at async upsertVector (/usr/local/lib/node_modules/flowise/dist/utils/upsertVector.js:114:32) at async Object.upsertVectorMiddleware (/usr/local/lib/node_modules/flowise/dist/services/vectors/index.js:9:16) at async createInternalUpsert (/usr/local/lib/node_modules/flowise/dist/controllers/vectors/index.js:28:29) 2024-06-17 11:57:38 [ERROR]: [server]: Error: Error: ReferenceError: fetch is not defined Error: Error: ReferenceError: fetch is not defined at buildFlow (/usr/local/lib/node_modules/flowise/dist/utils/index.js:493:19) at async upsertVector (/usr/local/lib/node_modules/flowise/dist/utils/upsertVector.js:114:32) at async Object.upsertVectorMiddleware (/usr/local/lib/node_modules/flowise/dist/services/vectors/index.js:9:16) at async createInternalUpsert (/usr/local/lib/node_modules/flowise/dist/controllers/vectors/index.js:28:29)
To Reproduce Steps to reproduce the behavior:
Run flowise with npx and create a simple flow using Custom Document Loader & Vector Store, using fetch() function in JS.
Expected behavior Upsert working with no error
Screenshots
Flow Problem Chatflow.json
Setup
npx flowise start
,pnpm start
]Additional context I have the newest version of Node.js and also installed fetch with "npm install node-fetch" and fetch still appears as not defined for me.