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

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

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...