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 'app.py', which I believe is the default when deploying a chatbot using the azure ai studio UI.
How to resolve internal server error with Azure AI Studio
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: Quart.call() missing 1 required positional argument: 'send'
"GET /fixdem.azurewebsites.net/ 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/sync.py", line 136, in handle
self.handle_request(listener, req, client, addr)
File "/opt/python/3.11.4/lib/python3.11/site-packages/gunicorn/workers/sync.py", line 179, in handle_request
respiter = self.wsgi(environ, resp.start_response)
1 answer
Sort by: Most helpful
-
Borgert, Andrew J 20 Reputation points
2024-02-12T18:50:49.43+00:00