You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using MySQL database, the flowData column in the chat_flow table only supports up to a maximum of 65,535 characters. Values greater than this length are truncated. The column flowData column stores JSON data and when it's truncated, an error in the browser Uncaught SyntaxError: Unterminated string in JSON at position 65535 is thrown because the data is incomplete.
This issue only happens when using MySQL database, SQLite and Postgres works just fine.
To Reproduce
Use MySQL as a database (DATABASE_TYPE=mysql)
Log in to Flowise and create a new Chatflow
Add nodes as much as you can until the size of the Chatflow JSON reaches more than 65,535 characters
Save Chatflow
Go back to the main page
Open the Chatflow you created in step 3
Expected behavior
It should load the Chatflow/canvas.
Screenshots
Setup
Installed with Docker
Flowise Version 1.6.4 (docker.io/flowiseai/flowise:1.6.4)
A variable-length string. M represents the maximum column length in characters. The range of M is 0 to 65,535. The effective maximum length of a VARCHAR is subject to the maximum row size (65,535 bytes, which is shared among all columns) and the character set used
Describe the bug
When using MySQL database, the
flowData
column in thechat_flow
table only supports up to a maximum of 65,535 characters. Values greater than this length are truncated. The columnflowData
column stores JSON data and when it's truncated, an error in the browserUncaught SyntaxError: Unterminated string in JSON at position 65535
is thrown because the data is incomplete.This issue only happens when using MySQL database, SQLite and Postgres works just fine.
To Reproduce
DATABASE_TYPE=mysql
)Expected behavior
It should load the Chatflow/canvas.
Screenshots
Setup
Additional context
TEXT
data type in MySQL is documented here https://dev.mysql.com/doc/refman/8.3/en/string-type-syntax.htmlTEXT
data type can store much larger amount of data https://www.postgresql.org/docs/9.6/datatype-character.html.The text was updated successfully, but these errors were encountered: