简体   繁体   English

将app.yaml从go114更新到go115时如何处理`app_engine_apis`警告

[英]How to deal with `app_engine_apis` warning when updating app.yaml from go114 to go115

I recently updated my app.yaml from我最近更新了我的app.yaml来自

runtime: go114

to

runtime: go115

because I was warned in an email that support for go114 was ending.因为我在 email 中被警告说对go114的支持即将结束。

The service deployed fine but after it finished, I got the message:该服务部署正常,但完成后,我收到消息:

Updating service [default]...⠼WARNING: There is an indirect dependency on App Engine APIs, but they are not enabled in your app.yaml.正在更新服务 [默认]...⠼警告:存在对 App Engine API 的间接依赖,但它们未在您的应用程序中启用。yaml。 You may see runtime errors trying to access these APIs.您可能会在尝试访问这些 API 时看到运行时错误。 Set the app_engine_apis property.设置 app_engine_apis 属性。

So I added:所以我补充说:

app_engine_apis: true

And now the service won't deploy and gives this error:现在该服务不会部署并出现此错误:

ERROR: (gcloud.app.deploy) An error occurred while parsing file: [<snip>/app.yaml] Unexpected attribute 'app_engine_apis' for object of type AppInfoExternal.错误:(gcloud.app.deploy) 解析文件时发生错误:[<snip>/app.yaml] AppInfoExternal 类型的 object 的意外属性“app_engine_apis”。

Looks like a catch 22. How do I deal with this?看起来像一个陷阱 22. 我该如何处理这个问题?

Posting this as community wiki as it's based on @Joel's comments.将此作为社区 Wiki 发布,因为它基于@Joel 的评论。

It looks like this is being triggered, since those APIs aren't enabled yet in go115 , you might get a runtime error.看起来是被触发了,因为go115中尚未启用这些 API,您可能会遇到运行时错误。

I would say that you should probably reach out to Google Cloud either in their Issue Tracker system or open an Issue in this Github Page so that they can fix this issue, as there doesn't seem to be any workarounds for this one.我想说的是,您可能应该在他们的问题跟踪器系统中联系 Google Cloud,或者在这个Github 页面中打开一个问题,以便他们可以解决这个问题,因为这个问题似乎没有任何解决方法。

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

相关问题 意外属性 app_engine_apis 错误部署 Python 3 App Engine Flask 应用程序 - Unexpected attribute app_engine_apis error deploying Python 3 App Engine Flask app 如何使用 cloudbuild 将秘密管理器秘密传递给 app.yaml 中的应用引擎环境变量 - How Can I pass secret manager secret using cloudbuild to app engine environment variable in app.yaml app.yaml 问题 python 标准应用引擎 - app.yaml problem python standard app engine App Engine:基于环境的不同 app.yaml 文件 - App Engine: different app.yaml files based on environment 如何通过 app.yaml 将环境变量传递给 google app engine? - How can you pass environment variables to google app engine via app.yaml? 如何将变量从 github 操作工作流传递到 GAE app.yaml 文件? - How can I pass a variable from github actions workflow to a GAE app.yaml file? Google Cloud App Engine - Eclipse 在 app.yaml 中显示“运行时:java 11”不是 Java - Google Cloud App Engine - Eclipse shows "runtime: java 11" in app.yaml is not Java Go + App Engine 数据存储区:如何过滤掉 null 的行? - Go + App Engine Datastore: How to filter out rows that are null? 如何使用 go 1.11 和 Google App Engine Standard 验证私有 Go 模块 - How to authenticate a private Go Module using go 1.11 and Google App Engine Standard 支持 app.yaml 中的负后视正则表达式 - Support for negative lookbehind regex in app.yaml
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM