Skip to content

postgres - message table - flow id constain error with published flow #7529

Open
@egerszu

Description

@egerszu

Bug Description

Hi,

The published flow is using a made up flow id that cannot be inserted into the message table.

IntegrityError: (psycopg.errors.ForeignKeyViolation) insert or update on table
"message" violates foreign key constraint "message_flow_id_fkey"
DETAIL: Key (flow_id)=(1f89c99c-f7dd-5863-8974-56abc3a347d2) is not present in
table "flow".

I would like to contribute, but need a direction what you would prefer.
Remove the constrain or insert the flow id into the flow table, or something else?

Reproduction

Use postresql db instead of sqlite, publish a flow that saves a message.
Try to interact through the published flow.

Expected behavior

Message to be saved.

Who can help?

No response

Operating System

Ubuntu

Langflow Version

1.3.2

Python Version

None

Screenshot

No response

Flow File

No response

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