Azure-Samples / chat-with-your-data-solution-accelerator

A Solution Accelerator for the RAG pattern running in Azure, using Azure AI Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences. This includes most common requirements and best practices.
https://azure.microsoft.com/products/search
MIT License
651 stars 324 forks source link

chatbot UI is throwing errors #930

Closed eosho closed 1 month ago

eosho commented 1 month ago

Describe the bug

The chatbot UI is throwing an error with the latest changes made.

Expected behavior

Fully loaded UI page.

How does this bug make you feel?

Share a gif from giphy to tells us how you'd feel


Debugging information

Steps to reproduce

Steps to reproduce the behavior:

  1. Pull the latest image to Azure Web App
  2. Check the kudu logs or app insights

Screenshots

App insights log

image

Logs

024-05-16T20:04:09.235878866Z ERROR:create_app:Exception on / [GET]
2024-05-16T20:04:09.236023667Z Traceback (most recent call last):
2024-05-16T20:04:09.236031667Z   File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1473, in wsgi_app
2024-05-16T20:04:09.236035167Z     response = self.full_dispatch_request()
2024-05-16T20:04:09.236038467Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-16T20:04:09.236041667Z   File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 882, in full_dispatch_request
2024-05-16T20:04:09.236045167Z     rv = self.handle_user_exception(e)
2024-05-16T20:04:09.236123768Z          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-16T20:04:09.236133268Z   File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 880, in full_dispatch_request
2024-05-16T20:04:09.236137368Z     rv = self.dispatch_request()
2024-05-16T20:04:09.236140768Z          ^^^^^^^^^^^^^^^^^^^^^^^
2024-05-16T20:04:09.236143968Z   File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 865, in dispatch_request
2024-05-16T20:04:09.236147268Z     return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
2024-05-16T20:04:09.236150568Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-16T20:04:09.236153768Z TypeError: create_app.<locals>.static_file() got an unexpected keyword argument 'path'

Tasks

To be filled in by the engineer picking up the issue