Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve an error on GAE for "Unexpected attribute 'dispatch' for object of type AppInfoExternal."

Please tell me to deploy my project for GAE.

I can not deploy my project because of the following error.

%appcfg.py update app.yaml dispatch.yaml worker.yaml
(omissions)
appcfg.py: error: Error parsing ./dispatch.yaml: Unexpected attribute 'dispatch' for object of type AppInfoExternal.
in "./dispatch.yaml", line 4, column 1.

This project has the following yaml files in direct project folder.

app.yaml

dipatch.yaml

worker.yaml

The following is dispatch.yaml.

application: my-app

dispatch:
- url: "*/worker/*"
  module: worker

The following is worker.yaml.

application: my-app
module: worker
api_version: 1
threadsafe: false
version: uno
runtime: python27
instance_class: B1
manual_scaling:
    instances: 1
handlers:
- url: /_ah/start
    script: my-worker.app
like image 506
prk2 Avatar asked Oct 22 '25 02:10

prk2


1 Answers

Wrong indenting. Should be:

application: my-app

dispatch:
  - url: "*/worker/*"
    module: worker
like image 117
GAEfan Avatar answered Oct 24 '25 16:10

GAEfan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!