繁体   English   中英

AppEngine部署中的隐密错误

[英]Cryptic errors in AppEngine deployment

没有代码更改的AppEngine部署突然失败,并显示一条错误消息:

Beginning deployment of service [default]...
WARNING: Deployment of service [default] will ignore the skip_files field in the configuration file, because the image has already been built.
Updating service [default] (this may take several minutes)...
...........................failed.
ERROR: (gcloud.app.deploy) Error Response: [13] Deployment Manager operation failed, name: operation-1513231070597-56046906d0f88-da77cf52-0e00ca2f, error: [{"code":"CONDITION_NOT_MET","location":"/deployments/aef-default-50474e3/resources/aef-default-50474e3-00it->$.properties","message":"\"/properties/metadata/items/12/value\": domain: validation; keyword: type; message: instance does not match any allowed primitive type; allowed: [\"string\"]; found: \"number\""}]
Exited with code 1

这是由于传递给deploy命令的版本被解析为数字/整数而不是字符串。 解决方法是确保将其作为字符串传递。

注意:如果基于截断的git哈希自动生成版本,则完全有可能生成将被解析为数字的版本,例如:哈希50474e3将被视为科学计数法。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM