Deploying give me the following error : pydantic.v1.error_wrappers.ValidationError:

I got the following error , any idea where the issue located? project works well on my pc

pydantic.v1.error_wrappers.ValidationError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you’re on Streamlit Cloud, click on ‘Manage app’ in the lower right of your app).


File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/", line 541, in _run_script
    exec(code, module.__dict__)File "/mount/src/adam-app/", line 83, in <module>
    main()File "/mount/src/adam-app/", line 48, in main
    embeddings = OpenAIEmbeddings(chunk_size=1)File "/home/adminuser/venv/lib/python3.9/site-packages/pydantic/v1/", line 341, in __init__
    raise validation_error

Hi @tavakohr,

Thank you for sharing your question with the community!

Your post is missing a code snippet and a link to your app’s GitHub repo. Please check out our guidelines on how to post an effective question here and update your post to help the community answer your question.

Hi, @tonykip Thank you so much for your prompt response, I was about to post the full log then I found the issue, Besides what I posted the rest of the log messages were not that specific. the only clue was in any case it warned me the Openai key was missing. the issue was I totally forgot to add openai in the requirements and right after adding it all problems were resolved.
Thanks again for following up

1 Like

Awesome! Thank you for getting back and confirming you got it to work! Happy Streamlit-ing!:balloon:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.