【问题标题】:Heroku H18 503 vs 404Heroku H18 503 与 404
【发布时间】:2016-11-23 10:01:42
【问题描述】:

我在 Heroku 上运行一个烧瓶应用程序,每周有几次我看到如下错误:

pskb-prod heroku/router:  sock=backend at=error code=H18 desc="Server Request Interrupted" method=GET path="/administrator/index.php" host=tutorials.pluralsight.com request_id=d1331164-89f2-4e01-b0d3-0666fa4541ad fwd="85.102.23.202" dyno=web.2 connect=0ms service=409ms status=503 bytes=18571

我假设这是某种黑客尝试,以查看该 URL 是否存在并且有效。显然它不是,因为我正在运行一个烧瓶应用程序,而不是 PHP。

为什么这会显示为 H18/503 错误?

我可以自己尝试在浏览器中向/administrator/index.php 发出请求,并正确地从烧瓶应用程序中获得 404 响应。

如何触发此 H18/503 错误?

值得注意的是,这与特定 URL 无关,因为我看到相关 URL 的类似错误,例如:

  • /admin/login.php
  • /bitrix/admin/index.php?lang=en
  • /admin
  • /wp-login.php

最后,在我收到这些错误时,我没有看到我的任何测功机被重新启动,所以不要认为这与这些请求进入时重新启动测功机有关。

【问题讨论】:

    标签: heroku flask


    【解决方案1】:

    我认为这个问题与没有 nginx 的 gunicorn 相关,如 https://github.com/benoitc/gunicorn/issues/840

    【讨论】:

      猜你喜欢
      • 2014-12-25
      • 2016-03-11
      • 1970-01-01
      • 1970-01-01
      • 2017-07-07
      • 2018-09-17
      • 2021-11-06
      • 2020-05-26
      • 2017-02-11
      相关资源
      最近更新 更多