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.54k stars 2.39k forks source link

No response messages - error 403 - AuthenticationTypeDisabled #1000

Open AxelQSam opened 1 month ago

AxelQSam commented 1 month ago

Describe the bug No chat answers are given. Have been working before. Only given an error 403 message (both live and locally), shown below:

There was an error generating a response. Chat history can't be saved at this time. Error code: 403 - {'error': {'code': 'AuthenticationTypeDisabled', 'message': 'Key based authentication is disabled for this resource.'}}

To Reproduce Steps to reproduce the behavior:

  1. Run $ ./start.sh
  2. Click on the provided link
  3. Enter prompt
  4. Receive error message

Expected behavior I expect to receive a chat answer.

Configuration: Please provide the following

Startup command and runtime configuration is shown below:

{
  "runtime": "PYTHON|3.11",
  "startupCommand": "python3 -m gunicorn app:app"
}

has context menu

abhahn commented 1 month ago

Hi @AxelQSam , based on the error message, it looks like one of your configured resources (either Azure Open AI or Azure Search) no longer supports key-based access. Can you share the stack trace of the application failure so I can make recommendations for your RBAC setup to resolve the problem?