2011-04-21 126 views
2

我在嘗試運行使用dev_appserver.py一個應用程序時,這個奇怪的消息錯誤:錯誤的谷歌應用程序上運行的應用程序引擎

ERROR 2011-04-21 23:03:44,984 dev_appserver_main.py:407] Fatal error when loading 
application configuration: 
Value 'warmup' for key ??? does not match expression '^(mail|xmpp_message|rest|startup)$' 
in "stackprinter/app.yaml", line 53, column 1 

我不知道什麼可能會造成這一點,我希望有人能夠至少引導我走向正確的方向!

編輯:app.yaml中的內容:

application: foo 
version: 1b 
runtime: python 
api_version: 1 

builtins: 
- datastore_admin: on 

inbound_services: 
- warmup 

handlers: 
- url: /test.* 
    login: admin 
    script: gaeunit.py 
- url: /favicon.ico 
    static_files: app/static/images/favicon.ico 
    upload: app/static/images/favicon.ico 
- url: /robots.txt 
    static_files: app/static/docs/robots.txt 
    upload: app/static/docs/robots.txt 
- url: /crossdomain.xml 
    static_files: app/static/docs/crossdomain.xml 
    upload: app/static/docs/crossdomain.xml 
- url: /sitemap.xml 
    static_files: app/static/docs/sitemap.xml 
    upload: app/static/docs/sitemap.xml 
- url: /javascripts 
    static_dir: app/static/javascripts 
- url: /stylesheets 
    static_dir: app/static/stylesheets 
- url: /images 
    static_dir: app/static/images 
- url: /docs 
    static_dir: app/static/docs 
- url: /deleted 
    static_dir: app/static/deleted 
- url: /_ah/queue/deferred 
    script: $PYTHON_LIB/google/appengine/ext/deferred/handler.py 
    login: admin 
- url: /_ereporter 
    script: $PYTHON_LIB/google/appengine/ext/ereporter/report_generator.py 
    login: admin 
- url: /admin.* 
    script: application.py 
    login: admin 
- url: /_ah/warmup 
    script: application.py 
    login: admin 
- url: /.* 
    script: application.py 

謝謝!

+0

app.yaml的內容是什麼? – 2011-04-21 23:14:04

+0

包含你的'app.yaml'可能是個好主意,因爲錯誤信息是指它。 – 2011-04-22 01:27:22

回答

1

解決!

問題是我有一箇舊的GAE SDK,在1.4.0版本中添加了熱身請求。

乾杯

相關問題