Google app engine AppEngine部署中的隐藏错误

Google app engine AppEngine部署中的隐藏错误,google-app-engine,Google App Engine,在没有代码更改的情况下部署到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 [d

在没有代码更改的情况下部署到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
将被视为科学符号。

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

注意:如果您是根据截断的git哈希自动生成版本,则完全可以生成将被解析为数字的版本,例如:哈希
50474e3
将被视为科学符号