Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

[BUG] Maximum call stack size exceeded

Open jpmin7 opened this issue 1 year ago • 5 comments

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.

jpmin7 avatar Feb 12 '24 15:02 jpmin7

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

jpmin7 avatar Feb 13 '24 07:02 jpmin7

I'm having the same issue with a 28MB JSON file. Did you find any solutions?

Screenshot 2024-03-24 at 20 19 37

aarmandas avatar Mar 24 '24 19:03 aarmandas

Also having this problem with a 1KB test file when trying to upsert.

Screenshot 2024-04-01 at 10 57 26 AM
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

frankyw avatar Apr 01 '24 14:04 frankyw

Same issue on a 80mb JSON file

Esshahn avatar Jul 03 '24 15:07 Esshahn