Handle session ID does not exist in the user_sessions dictionary#1364
Closed
gsornsen wants to merge 1 commit intoChainlit:mainfrom
Closed
Handle session ID does not exist in the user_sessions dictionary#1364gsornsen wants to merge 1 commit intoChainlit:mainfrom
gsornsen wants to merge 1 commit intoChainlit:mainfrom
Conversation
Collaborator
|
I propose we try and tackle this one as part of #1365 |
Collaborator
|
On re-visiting this one; we now have full test coverage of the SQLAlchemy data layer using SQLite and all of the fields which you here claim are not supported. That makes this PR kind of a boon, plus data mangling vs. the data layer should really be dealt with at the data layer. Thanks for the contrib, but I'll be closing this one. |
|
I get the same error on the latest published |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When trying to resume a chat using the
SQLAlchemyDataLayerwith SQLite as the database, and the following SQL to create the tables with:as UUID, JSONB, TEXT[], and BOOLEAN are not support types in SQLite:
I'd get the following AttributeError:
The AttributeError appeared to come from:
Modifying to:
Yielded:
{"memory": null, "id": "3cd2ee0c-a271-4ebf-bf4d-fd3fdfb0b4ea", "env": "{\"api_key=<redacted>\"}", "chat_settings": {}, "user": null, "chat_profile": null, "http_referer": "http://localhost:8080/thread/4eaaee1c-d630-488d-b15d-1fdf36610606", "client_type": "webapp", "languages": "en-US,en;q=0.9", "runnable": null, "metadata": {}}Modifying to:
Yieled:
User sessions: {}With the changes introduced in the PR, all of the persisted storage functionality works with SQLite as the database using the
SQLAlchemyDataLayerand all of the cypress and backend tests passed locally.Please point me in another direction if there's a better way to handle this elsewhere! I'm fairly new to using Chainlit and I'm a big fan.