Skip to content

2.10.0 - Fail To Resume Some Threads - Cannot read properties of null (reading 'startsWith') #2827

@mihidumh

Description

@mihidumh

Describe the bug
Since upgrading from 2.9.6 to 2.10.0 , some old threads do not load.
Error: Cannot read properties of null (reading 'startsWith')

Console errors:

DETAIL:  Failing row contains (9cb39e96-89b9-474d-af87-fb4fd1359bc6, 2026-03-06 02:16:51.353, 2026-03-06 13:16:45.756, null, null, null, null, {}).
2026-03-06 13:16:45,768 | chainlit | ERROR  | Database error: null value in column "metadata" of relation "Thread" violates not-null constraint
DETAIL:  Failing row contains (9cb39e96-89b9-474d-af87-fb4fd1359bc6, 2026-03-06 02:16:51.357, 2026-03-06 13:16:45.76, null, null, null, null, {}).
2026-03-06 13:16:45,769 | asyncio | ERROR  | Task exception was never retrieved
future: <Task finished name='Task-329' coro=<ChainlitDataLayer.update_step() done, defined at /home/mihidum/vscode/chatbot/.venv/lib/python3.13/site-packages/chainlit/data/utils.py:10> exception=NotNullViolationError('null value in column "metadata" of relation "Thread" violates not-null constraint')>

To Reproduce

  1. Using official Chainlit Datalayer and Postgres server.
  2. Try to resume an old thread.

Expected behavior
Thread resumes and loads.

Screenshots
Image

Might be related to #2778 ?

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions