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

keyError 'session_id' while running service app #24

Open
rupeshtiwari opened this issue Sep 27, 2023 · 0 comments
Open

keyError 'session_id' while running service app #24

rupeshtiwari opened this issue Sep 27, 2023 · 0 comments

Comments

@rupeshtiwari
Copy link

I am getting this error

0
Chat with AI
0

hello
KeyError: 'session_id'
Traceback:

File "/Users/rupeshti/anaconda3/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 541, in _run_script
    exec(code, module.__dict__)
File "/Users/rupeshti/workdir/gitbox/langchain-aws-template-main/service/webapp/app.py", line 123, in <module>
    write_chat_message(a, q)
File "/Users/rupeshti/workdir/gitbox/langchain-aws-template-main/service/webapp/app.py", line 114, in write_chat_message
    st.session_state['session_id'] = md['answer']['session_id']
                                     ~~~~~~~~~~~~^^^^^^^^^^^^^^

Made with [Streamlit](http://streamlit.io/)
@rupeshtiwari rupeshtiwari changed the title keyError 'session_id' keyError 'session_id' while running service app Sep 27, 2023
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