在Google App Engine上运行应用时出错

时间:2011-04-21 23:05:59

标签: python google-app-engine

尝试使用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

谢谢!

1 个答案:

答案 0 :(得分:1)

解决!

问题是我有一个旧的GAE SDK,在1.4.0版本中添加了热身请求。

干杯