Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unstructured Document Loader - Maximum call stack size exceeded #1409

Closed
keithknott26 opened this issue Dec 19, 2023 · 1 comment
Closed
Labels
bug Something isn't working enhancement New feature or request

Comments

@keithknott26
Copy link

Describe the bug
When processing a large folder of .html documents with the Unstructured.io document loader, I observed an error message when trying to upsert documents: RangeError: Maximum call stack size exceeded.

2023-12-18 20:48:12 [ERROR]: Maximum call stack size exceeded RangeError: Maximum call stack size exceeded at UnstructuredDirectoryLoader.load (/opt/homebrew/lib/node_modules/flowise/node_modules/langchain/dist/document_loaders/fs/directory.cjs:97:31) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async UnstructuredFolder_DocumentLoaders.init (/opt/homebrew/lib/node_modules/flowise/node_modules/flowise-components/dist/nodes/documentloaders/Unstructured/UnstructuredFolder.js:115:22) at async buildLangchain (/opt/homebrew/lib/node_modules/flowise/dist/utils/index.js:245:54) at async App.buildChatflow (/opt/homebrew/lib/node_modules/flowise/dist/index.js:1250:40) at async /opt/homebrew/lib/node_modules/flowise/dist/index.js:938:13 2023-12-18 20:48:12 [ERROR]: [server]: Error: RangeError: Maximum call stack size exceeded Error: RangeError: Maximum call stack size exceeded at buildLangchain (/opt/homebrew/lib/node_modules/flowise/dist/utils/index.js:258:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async App.buildChatflow (/opt/homebrew/lib/node_modules/flowise/dist/index.js:1250:40) at async /opt/homebrew/lib/node_modules/flowise/dist/index.js:938:13

To Reproduce
Point the unstructured.io folder path at .html files in a directory
Save the flow
Upsert the documents
The error appears

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
image
image
image

Flow
If applicable, add exported flow in order to help replicating the problem.

Setup
docker
npx flowise start
macOS
Chrome browser

Additional context
Add any other context about the problem here.

@HenryHengZJ HenryHengZJ added bug Something isn't working enhancement New feature or request labels Jan 4, 2024
@kweripx
Copy link

kweripx commented Jan 16, 2024

any updates on this? im having the same issue but with csv file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants