Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/364.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/google-app-engine/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 在Google应用程序引擎上运行应用程序时出错_Python_Google App Engine - Fatal编程技术网

Python 在Google应用程序引擎上运行应用程序时出错

Python 在Google应用程序引擎上运行应用程序时出错,python,google-app-engine,Python,Google App Engine,在尝试使用dev\u 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

在尝试使用
dev\u 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版本中添加了预热请求


干杯

你的app.yaml的内容是什么?包括你的
app.yaml
可能是个好主意,因为错误消息指的是它。