I want to upload an app to Google App Engine:
I get this
Error parsing yaml file:
mapping values are not allowed here
in "/home/antonio/Desktop/ATI/climate-change/app.yaml", line 2, column 8
When running
./appcfg.py update /home/antonio/Desktop/ATI/climate-change
with this app.yaml file:
application:climate-change
version: 1
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /.*
script: helloworld.app
line 2, column 8 corresponds to the version line. What is wrong here? Btw, I'm using Ubuntu 12.04 here.
Another cause is wrong indentation which means trying to create the wrong objects. I've just fixed one in a Kubernetes Ingress definition:
Wrong
Correct
Change
to
The space after the colon is mandatory in yaml. (See http://www.yaml.org/spec/1.2/spec.html#id2759963)
Maybe this will help someone else, but I've seen this error when the RHS of the mapping contains a colon without enclosing quotes, such as:
someKey: another key: Change to make today: work out more
should be
someKey: another key: "Change to make today: work out more"
Or, if spacing is not the problem, it might want the parent directory name rather than the file name.
Not
$ dev_appserver helloapp.py
But
$ dev_appserver hello/
For example:
Versus