microsoft / sample-app-aoai-chatGPT

Sample code for a simple web chat experience through Azure OpenAI, including Azure OpenAI On Your Data.
MIT License
1.57k stars 2.43k forks source link

Chat App Service Stops Responding After Adding Azure Cognitive Search Details #439

Open smegithuborg opened 9 months ago

smegithuborg commented 9 months ago

Hello,

I'm experiencing an issue with the Azure OpenAI Chat app service, which is based on the GitHub repository sample-app-aoai-chatGPT. The chat functionality works as expected until I add the Azure Cognitive Search service details to the environment variables. Once these details are added, the chat stops responding.

Details of the Issue:

The chat app operates correctly without the Azure Cognitive Search integration. Upon adding the Azure Cognitive Search details to the environment variables (AZURE_SEARCH_SERVICE, AZURE_SEARCH_INDEX, AZURE_SEARCH_KEY), the chat feature ceases to work. I have confirmed that the Azure Cognitive Search service is operational by successfully performing a test query using Postman and receiving a 200 OK response with the correct data. The environment variables for the Azure Cognitive Search service are correctly set in the app service configuration.

I am seeking assistance in diagnosing and resolving this issue. Has anyone encountered a similar problem, or can anyone provide insights into potential causes or troubleshooting steps I may have missed?

smegithuborg commented 9 months ago

image

sarah-widder commented 9 months ago

Hi @smegithuborg can you try enabling DEBUG in the app? This will allow the full request payload to be logged to the app service logs to help debug.