Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception: langchain_user_id is not set #2

Open
damianportillo opened this issue Jan 5, 2024 · 0 comments
Open

Exception: langchain_user_id is not set #2

damianportillo opened this issue Jan 5, 2024 · 0 comments

Comments

@damianportillo
Copy link

When using the example of provides, I get the following exception with the error, here:

@app.route('/')
def index():
--> langchain_memory.set_user_id("abc123")
return "Hello, World!"

127.0.0.1 - - [05/Jan/2024 14:01:07] "GET / HTTP/1.1" 500 -
Traceback (most recent call last):
File "c:\Users\Damian\Develope\Python\Llm\PROTON\venv\lib\site-packages\flask\app.py", line 1478, in call
return self.wsgi_app(environ, start_response)
File "c:\Users\Damian\Develope\Python\Llm\PROTON\venv\lib\site-packages\flask\app.py", line 1458, in wsgi_app
response = self.handle_exception(e)
File "c:\Users\Damian\Develope\Python\Llm\PROTON\venv\lib\site-packages\flask\app.py", line 1455, in wsgi_app
response = self.full_dispatch_request()
File "c:\Users\Damian\Develope\Python\Llm\PROTON\venv\lib\site-packages\flask\app.py", line 869, in full_dispatch_request
rv = self.handle_user_exception(e)
File "c:\Users\Damian\Develope\Python\Llm\PROTON\venv\lib\site-packages\flask\app.py", line 865, in full_dispatch_request
rv = self.preprocess_request()
File "c:\Users\Damian\Develope\Python\Llm\PROTON\venv\lib\site-packages\flask\app.py", line 1239, in preprocess_request
rv = self.ensure_sync(before_func)()
File "C:\Users\Damian\Develope\Python\Llm\PROTON\FlaskLangchain\flask_langchain\extension.py", line 226, in before_request
langchain_conversation_id = self._create_new_conversation_id()
File "C:\Users\Damian\Develope\Python\Llm\PROTON\FlaskLangchain\flask_langchain\extension.py", line 270, in _create_new_conversation_id
raise Exception("langchain_user_id is not set")
Exception: langchain_user_id is not set

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant