[BUG] Maximum call stack size exceeded
Describe the bug In some unclear pattern, Flowise throws a "Maximum call stack size exceeded" error, when running a Conversational Retrieval QA Chain.
To Reproduce When restarting the docker container where Flowise is run in the error disappears and returns randomly after a day or so.
Expected behavior "Maximum call stack size exceeded"
Setup
- hosted on EC2
- Flowise Version 1.5.
- Using GPT 4 Turbo Preview
- Supabase as Vector Store with ada-002
Additional context I can't reproduce it yet myself. I'll keep updating this issue with new learning. Maybe someone else has the same issue.
This is the console error:
prediction.js:3
POST https://flowise.kuro.technology/api/v1/internal-prediction/3dc86aa6-a72d-48d9-92d0-fcfcd4ccfd5a 500 (Internal Server Error)
| (anonymous) | @ | xhr.js:258 |
|---|---|---|
| xhr | @ | |
| Ae | @ | |
| Promise.then (async) | ||
| _request | @ | |
| request | @ | |
| (anonymous) | @ | |
| (anonymous) | @ | |
| $t | @ | |
| W | @ | |
| onKeyDown | @ | |
| De | @ | |
| Be | @ | |
| (anonymous) | @ | |
| zr | @ | |
| Ir | @ | |
| (anonymous) | @ | |
| uc | @ | |
| Pe | @ | |
| Ur | @ | |
| Xt | @ | |
| Vt | @ | |
| Show less |
I'm having the same issue with a 28MB JSON file. Did you find any solutions?
Also having this problem with a 1KB test file when trying to upsert.
2024-04-01 14:57:04 [ERROR]: Maximum call stack size exceeded
RangeError: Maximum call stack size exceeded
at Json_DocumentLoaders.init (/usr/local/lib/node_modules/flowise/node_modules/flowise-components/dist/nodes/documentloaders/Json/Json.js:70:25)
at async buildFlow (/usr/local/lib/node_modules/flowise/dist/utils/index.js:282:36)
at async App.upsertVector (/usr/local/lib/node_modules/flowise/dist/index.js:1698:13)
at async /usr/local/lib/node_modules/flowise/dist/index.js:1193:13
2024-04-01 14:57:04 [ERROR]: [server]: Error: RangeError: Maximum call stack size exceeded
Error: RangeError: Maximum call stack size exceeded
at buildFlow (/usr/local/lib/node_modules/flowise/dist/utils/index.js:326:19)
at async App.upsertVector (/usr/local/lib/node_modules/flowise/dist/index.js:1698:13)
at async /usr/local/lib/node_modules/flowise/dist/index.js:1193:13
Same issue on a 80mb JSON file