chainlit
chainlit copied to clipboard
Session not found
trafficstars
Hello, I use the latest chainlit and I have a "Session not found" issue.
this link isn't available : https://docs.chainlit.io/guides/migration/0.6.0
how can I fix this please ?
(.venv) PS C:\Users\koxx3\Documents\Coding\sdx-rag> .venv\Scripts\python.exe -m chainlit run chainlit_app.py ; "(Roo/PS Workaround: 33)" > $null; start-sleep -milliseconds 150
LLM is explicitly disabled. Using MockLLM.
2025-04-06 20:10:25 - LlamaIndex MockLLM will be used for internal operations if any.
2025-04-06 20:10:27 - HTTP Request: GET http://localhost:6333 "HTTP/1.1 200 OK"
2025-04-06 20:10:29 - HTTP Request: GET http://localhost:6333/collections/python_docs "HTTP/1.1 200 OK"
2025-04-06 20:10:29 - Connected to Qdrant at http://localhost:6333 and collection 'python_docs' found.
2025-04-06 20:10:29 - Load pretrained SentenceTransformer: all-MiniLM-L6-v2
C:\Users\koxx3\Documents\Coding\sdx-rag\.venv\lib\site-packages\huggingface_hub\file_download.py:896: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
warnings.warn(
2025-04-06 20:10:31 - 2 prompts are loaded, with the keys: ['query', 'text']
2025-04-06 20:10:33 - HTTP Request: GET http://localhost:6333/collections/python_docs/exists "HTTP/1.1 200 OK"
2025-04-06 20:10:35 - HTTP Request: GET http://localhost:6333/collections/python_docs "HTTP/1.1 200 OK"
2025-04-06 20:10:35 - Qdrant, Embedding Model, and Query Engine initialized successfully.
2025-04-06 20:10:35 - System prompt loaded successfully.
2025-04-06 20:10:35 - Your app is available at http://localhost:8000
2025-04-06 20:10:37 - Translation file for fr not found. Using default translation en-US.
2025-04-06 20:10:37 - Translated markdown file for fr not found. Defaulting to chainlit.md.
2025-04-06 20:10:46 - Translation file for fr not found. Using default translation en-US.
2025-04-06 20:10:54 - Translation file for fr not found. Using default translation en-US.
2025-04-06 20:11:01 - Received message: Propagate a TLE using Orekit / Jpype with Python. Make it simple without czml output !
2025-04-06 20:11:01 - Querying vector store for context...
Batches: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1.02it/s]
2025-04-06 20:11:04 - HTTP Request: POST http://localhost:6333/collections/python_docs/points/search "HTTP/1.1 200 OK"
2025-04-06 20:11:05 - Retrieved 3 context nodes.
2025-04-06 20:11:05 - Sending request to LM Studio: http://192.168.10.206:1234/v1/chat/completions
2025-04-06 20:11:52 - Translation file for fr not found. Using default translation en-US.
2025-04-06 20:11:53 - Task exception was never retrieved
future: <Task finished name='Task-238' coro=<AsyncServer._handle_event_internal() done, defined at C:\Users\koxx3\Documents\Coding\sdx-rag\.venv\lib\site-packages\socketio\async_server.py:610> exception=ValueError('Session not found')>
Traceback (most recent call last):
File "C:\Users\koxx3\AppData\Local\Programs\Python\Python310\lib\asyncio\tasks.py", line 232, in __step
result = coro.send(None)
File "C:\Users\koxx3\Documents\Coding\sdx-rag\.venv\lib\site-packages\socketio\async_server.py", line 612, in _handle_event_internal
r = await server._trigger_event(data[0], namespace, sid, *data[1:])
File "C:\Users\koxx3\Documents\Coding\sdx-rag\.venv\lib\site-packages\socketio\async_server.py", line 640, in _trigger_event
ret = await handler(*args)
File "C:\Users\koxx3\Documents\Coding\sdx-rag\.venv\lib\site-packages\chainlit\socket.py", line 325, in window_message
session = WebsocketSession.require(sid)
File "C:\Users\koxx3\Documents\Coding\sdx-rag\.venv\lib\site-packages\chainlit\session.py", line 313, in require
raise ValueError("Session not found")
ValueError: Session not found
2025-04-06 20:11:53 - Task exception was never retrieved
future: <Task finished name='Task-244' coro=<AsyncServer._handle_event_internal() done, defined at C:\Users\koxx3\Documents\Coding\sdx-rag\.venv\lib\site-packages\socketio\async_server.py:610> exception=ValueError('Session not found')>
Traceback (most recent call last):
File "C:\Users\koxx3\AppData\Local\Programs\Python\Python310\lib\asyncio\tasks.py", line 232, in __step
result = coro.send(None)
File "C:\Users\koxx3\Documents\Coding\sdx-rag\.venv\lib\site-packages\socketio\async_server.py", line 612, in _handle_event_internal
r = await server._trigger_event(data[0], namespace, sid, *data[1:])
File "C:\Users\koxx3\Documents\Coding\sdx-rag\.venv\lib\site-packages\socketio\async_server.py", line 640, in _trigger_event
ret = await handler(*args)
File "C:\Users\koxx3\Documents\Coding\sdx-rag\.venv\lib\site-packages\chainlit\socket.py", line 325, in window_message
session = WebsocketSession.require(sid)
File "C:\Users\koxx3\Documents\Coding\sdx-rag\.venv\lib\site-packages\chainlit\session.py", line 313, in require
raise ValueError("Session not found")
ValueError: Session not found
2025-04-06 20:11:54 - Task exception was never retrieved
future: <Task finished name='Task-247' coro=<AsyncServer._handle_event_internal() done, defined at C:\Users\koxx3\Documents\Coding\sdx-rag\.venv\lib\site-packages\socketio\async_server.py:610> exception=ValueError('Session not found')>
Traceback (most recent call last):
File "C:\Users\koxx3\AppData\Local\Programs\Python\Python310\lib\asyncio\tasks.py", line 232, in __step
result = coro.send(None)
File "C:\Users\koxx3\Documents\Coding\sdx-rag\.venv\lib\site-packages\socketio\async_server.py", line 612, in _handle_event_internal
r = await server._trigger_event(data[0], namespace, sid, *data[1:])
File "C:\Users\koxx3\Documents\Coding\sdx-rag\.venv\lib\site-packages\socketio\async_server.py", line 640, in _trigger_event
ret = await handler(*args)
File "C:\Users\koxx3\Documents\Coding\sdx-rag\.venv\lib\site-packages\chainlit\socket.py", line 325, in window_message
session = WebsocketSession.require(sid)
File "C:\Users\koxx3\Documents\Coding\sdx-rag\.venv\lib\site-packages\chainlit\session.py", line 313, in require
raise ValueError("Session not found")
ValueError: Session not found