Skip to content

[BUG] 1.7.2 Document Store: Double quotes are not escaped, flow crashes #2386

@OY-Linkin

Description

@OY-Linkin

Describe the bug
Double quotes in the data of a Document Store are not properly escaped, so using them in a chat flow it crashes with a JSON error.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new Document Store with a Document Loader Plain Text: Name = "Michael"
  2. Link the Document Store Node in your chat flow and connect it to a variable in your system prompt
  3. Run the chat flow.
  4. See error: "SyntaxError: Expected ',' or '}' after property value in JSON"

Expected behavior
Flow should build and run normally.

Screenshots
Screenshot 2024-05-10 at 16 52 21

Flow
Debug Chatflow (1).json

Setup

  • Installation: Locallynpx flowise start
  • Flowise Version 1.7.2
  • OS: macOS
  • Browser Chrome

Additional context
Using the same string (Name:"Michael") in a plain text node works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions