在Google App Engine中部署Quart Python应用程序

哈罗德

我正在尝试通过Google Cloud的App Engine标准部署基于Quart的python应用程序。但是,我不断收到以下错误:

Traceback (most recent call last):
  File "/env/lib/python3.7/site-packages/gunicorn/workers/gthread.py", line 284, in handle
    keepalive = self.handle_request(req, conn)
  File "/env/lib/python3.7/site-packages/gunicorn/workers/gthread.py", line 333, in handle_request
    respiter = self.wsgi(environ, resp.start_response)
TypeError: __call__() missing 1 required positional argument: 'send'

我知道Quart是ASGI解决方案,而Google App Engine是无服务器设置。将quart部署到AWS Lambda的建议之一是使用Magnum。这对Google Cloud App Engine也适用吗?

任何帮助,将不胜感激。

达斯汀·英格拉姆

https://github.com/pgjones/quart/issues/68

Quart是一个ASGI框架,而不是WSGI框架,这意味着它无法与无服务器一起使用。它可以与Mangum一起使用,后者是ASGI的无服务器替代方案。

这也意味着Quart将与App Engine,Cloud Functions等不兼容。

但是,它可以通过支持ASGI的HTTP服务器(例如Uvicorn)Cloud Run配合使用

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

在Google App Engine中部署python时出错

在Google App Engine中部署Mathjax

在 Google App Engine 上部署应用程序时出错

KeystoneJS 应用程序无法在 Google App Engine 上部署

将Django应用程序部署到Google App Engine

将节点应用程序部署到Google App Engine

Google App Engine Python应用程序需要登录

在Google App Engine中部署Flask应用导致“ gunicorn:错误:未指定应用模块”。

记录Google App Engine应用程序

在Google App Engine中部署python代码时出现证书错误

将Python Flask应用程序部署到Google App Engine时,没有名为“ flask”的模块

使用“ gcloud应用程序部署”部署到Google App Engine的过程被困

如何在Google Cloud Compute Engine中部署Spring Boot应用程序?

从Google App Engine应用程序运行Google Dataflow管道?

部署Java Google App Engine灵活应用程序时出错-等待应用程序基础结构正常运行超时

在 Google App Engine 上部署 Django REST 应用程序会出现 502 错误

将基本的Angular 2应用程序部署到Google App Engine

在cloudshell(Google App Engine)中寻找已部署的应用程序文件的位置?

如何将SpringBoot应用程序部署到Google App Engine?

无法在 Google App Engine 上部署 Flask 应用程序,收到错误“502 Bad Gateway”

在Google Cloud App Engine上部署闪亮的应用程序会返回错误

将不同的语言服务部署到同一应用程序[Google App Engine]

如何切换Google App Engine帐户以部署应用程序?

如何在Google App Engine上部署Angular多语言应用程序

如何在Google App Engine上部署Ktor应用程序?

获取 IllegalStateException: No such servlet: jsp 当访问已部署的 Java 应用程序到 Google App Engine 时

尽管readiness_check返回200状态响应,但Google App Engine应用程序部署失败

如何在Google App Engine上重新部署应用程序?

将应用程序部署到Google App Engine,并希望启动api和客户端