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


谢谢!

最佳答案

解决了!

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

干杯

10-04 11:18