VScode错误:gcloud.app.deploy解析文件时

问题描述

我正在将文件上传到Google云。我收到以下错误

ERROR: (gcloud.app.deploy) An error occurred while parsing file: [C:\Users\Samuel\app.yaml]      
mapping values are not allowed here
  in "C:\Users\Samuel\app.yaml",line 5,column 7

这是.yaml文件内容

runtime: go
api_version: go1

handlers:
- url: /
  script: _go_app

我不太清楚这个问题;它无法运行,如何将VS代码连接到我的Google云项目?谢谢

解决方法

我注意到您的app.yaml文件中有两件事:

  1. 直到g114为止,没有runtime: go' entry in known documentation there is only like g111(对于当前处于beta版的GO 1.14)-reference
  2. api_version仅在旧的运行时才可用,并且仅在旧的运行时才需要(我仅在Python2和PHP5.5中才发现它),而在其他运行时才贬值,请确保在Go中不可用-reference

我将从纠正这一问题开始。