How to resolve internal server error with Azure AI Studio

Subramani, Tamilselvan 30 Reputation points

I'm developing a custom chatbot in Azure AI Studio, and after successfully testing it in the playground, I attempted to deploy it as a web app. However, upon deployment, I encountered an Internal Server Error (HTTP 500.0). This type of error usually points to issues within the application code, such as unhandled exceptions or errors. I investigated the error in the log files, and the traceback revealed a TypeError related to Quart.__call__().
TypeError: missing 1 required positional argument: 'send' "GET / HTTP/1.1" 500 0 "-" "-" [ERROR] Error handling request / Traceback (most recent call last): File "/opt/python/3.11.4/lib/python3.11/site-packages/gunicorn/workers/", line 136, in handle self.handle_request(listener, req, client, addr) File "/opt/python/3.11.4/lib/python3.11/site-packages/gunicorn/workers/", line 179, in handle_request respiter = self.wsgi(environ, resp.start_response)

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
1,882 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Borgert, Andrew J 10 Reputation points

    I was able to fix this issue by adding the following Startup Command to the web app configuration python3 -m gunicorn app:app this assumes that the python app you're trying to launch is call '', which I believe is the default when deploying a chatbot using the azure ai studio UI. User's image

    2 people found this answer helpful.
    0 comments No comments