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.
Change
application:climate-change
to
application: climate-change
The space after the colon is mandatory in yaml if you want a key-value pair. (See http://www.yaml.org/spec/1.2/spec.html#id2759963)
Another cause is wrong indentation which means trying to create the wrong objects. I've just fixed one in a Kubernetes Ingress definition:
Wrong
- path: / backend: serviceName: <service_name> servicePort: <port>
Correct
- path: / backend: serviceName: <service_name> servicePort: <port>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With