FastAPI with A2WSGI module


I tried deploying a FastAPI application with the a2wsgi module with a that looks like the following:

from index import d4g
from a2wsgi import ASGIMiddleware
application = ASGIMiddleware(d4g)

I tried running it locally with waitress and it works fine but when I deploy the same on PythonAnywhere I don't receive any response (or even error, i checked all the log files). Could anyone guide me on what I am doing wrong?

That will not work on PythonAnywhere yet. We are currently working on ASGI support.