Chainlit / chainlit

Build Conversational AI in minutes ⚡️
https://docs.chainlit.io
Apache License 2.0
6.24k stars 799 forks source link

0.6 version error. ValueError: Session not found #205

Closed jiansongjay closed 12 months ago

jiansongjay commented 12 months ago

chainlit hello 2023-07-21 11:59:30 - Your app is available at http://localhost:8000 2023-07-21 11:59:32 - Failed to persist message: Unable to match input value to any allowed input type for the field. Parse errors: [data.conversation: A value is required but not set, Invalid argument type. id should be of any of the following types: Int] 2023-07-21 11:59:33 - Failed to persist message: Unable to match input value to any allowed input type for the field. Parse errors: [data.conversation: A value is required but not set, Invalid argument type. id should be of any of the following types: Int] 2023-07-21 11:59:37 - Task exception was never retrieved future: <Task finished name='Task-140' coro=<AsyncServer._handle_event_internal() done, defined at /Users/shijiansong/.pyenv/versions/3.10.11/lib/python3.10/site-packages/socketio/asyncio_server.py:522> exception=ValueError('Session not found')>

ValueError: Session not found

willydouhard commented 12 months ago

Hello, as described in the migration guide, the local db schema has been updated in 0.6.0. Running chainlit migrate will fix this issue :)

jiansongjay commented 12 months ago

Thank you. It is usefull.