python - 在 Google App Engine 上运行应用程序时出错

标签 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

谢谢!

最佳答案

解决了!

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

干杯

关于python - 在 Google App Engine 上运行应用程序时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5750730/

相关文章:

python - 如何在 HTML 表格中解析 HTML 表格?

python - 使用 Celery 初始化带有参数的 worker

google-app-engine - 服务帐户需要什么权限才能使用 gcloud 部署到 Google App Engine?

python - 无法获取不同项目的所有链接

python - 内存装饰器保存存储的值

google-app-engine - "Usage History"在 Google App Engine 新控制台中的位置

reactjs - 将 create-react-app build 部署到 Google Cloud Platform 后找不到 URL

python - 错误 : bad runtime process port ['' ] on App Engine

python - 使用 python 的 BaseHTTPRequestHandler 保持 HTTP 请求之间的状态

javascript - GAE node.js console.error() 未记录为 ERROR 日志级别