英文:
New deploy with django and zappa only returns the error "NoneType object has no attribute read"
问题
我已经使用 Django + Zappa + AWS 几年了,一直都很完美。然而,当我尝试使用最新版本的 Django(4.2.1)和 Zappa(0.56.1)部署新项目时,项目部署仅返回以下错误消息:
"错误:警告!部署的 Lambda 的状态检查失败。对 '/ '的 GET 请求返回了500响应代码。"
并且使用 Zappa tail 命令只返回:
"NoneType 对象没有 read 属性"
英文:
I've been using Django + zappa + aws perfectly for a few years now. However, when trying to deploy a new project using the latest versions of Django(4.2.1) and zappa(0.56.1) the project deploy only returns:
"Error: Warning! Status check on the deployed lambda failed. A GET request to '/' yielded a 500 response code."
And using the zappa tail command just returns:
"NoneType object has no attribute read"
答案1
得分: 1
请看 https://github.com/zappa/Zappa/issues/1230,这里记录了此问题并提供了解决方法。
英文:
See https://github.com/zappa/Zappa/issues/1230 where this issue is logged and there is a workaround.
答案2
得分: 0
最新发布的版本0.57.0修复了这个错误。
如果运行pip install 'zappa>=0.57.0'
,您应该会获得修复的版本。
完整的发布说明:https://github.com/zappa/Zappa/releases/tag/0.57.0
英文:
The last released version 0.57.0 fixes this error.
If you run pip install 'zappa>=0.57.0'
you should get the fixed release.
Full release notes: https://github.com/zappa/Zappa/releases/tag/0.57.0
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论