2011-04-21 109 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版本中添加了热身请求。

干杯