“New deploy with Django and Zappa only returns the error ‘NoneType object has no attribute read.'”

huangapple go评论71阅读模式
英文:

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

huangapple
  • 本文由 发表于 2023年5月13日 23:13:36
  • 转载请务必保留本文链接:https://go.coder-hub.com/76243462.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定