[QUESTION] FastAPI on Google AppEngine
See original GitHub issueDescription
Is it possible to use FastAPI on Google AppEngine?
Additional context
I have tried a minimal project, with:
- the main.py example on the repo
README.md
, requirements.txt
containing justfastapi
anduvicorn
app.yaml
containing justruntime: python37
When deploying, I get the following error:
Traceback (most recent call last):
File "/env/lib/python3.7/site-packages/gunicorn/workers/gthread.py", line 279, in handle
keepalive = self.handle_request(req, conn)
File "/env/lib/python3.7/site-packages/gunicorn/workers/gthread.py", line 328, in handle_request
respiter = self.wsgi(environ, resp.start_response)
TypeError: __call__() takes 2 positional arguments but 3 were given
I have tried different variations, but I always end up with this error.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
FastApi + Gunicorn workers + Google app engine
Please be sure to answer the question. Provide details and share your research! ... Asking for help, clarification, or responding to other answers ......
Read more >Deploying FastAPI application in Google App Engine in ...
FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.6+ based on standard Python type hints.
Read more >Deploy FastAPI Python app to Google Cloud Platform on ...
In this tutorial we will deploy a Simple FastAPI application written in Python to GCP (Google Cloud Platform) Google App Engine.
Read more >Building a Python 3 App on App Engine - Google Cloud
Use this guide to learn the basics of developing and deploying Python 3 web services to the App Engine standard environment. In this...
Read more >tiangolo/fastapi - Gitter
question is if you have 50 cookies. :laughing: Sebastián Ramírez ... Anybody using it in production right now w/ Google Cloud SQL? ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
just quoting uvicorn doc 👍
Thank you @euri10 ! You are right, the entrypoint is to blame.
For future reference, the following
app.yaml
results in the error above:while the correct version is: