0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

[Heroku] code=H12 desc="Request timeout"の解決

Last updated at Posted at 2022-01-16

設定

  • Heroku
  • Heroku Postgres
  • Node.js

問題

  • Herokuサーバーに対するHTTPリクエストがタイムアウトする
2022-01-16T08:05:42.762559+00:00 heroku[router]: at=error code=H12
desc="Request timeout" method=POST path="/sample" host=[host_name]
request_id=[request_id] fwd=[ip_address] dyno=web.1 connect=0ms
service=30000ms status=503 bytes=0 protocol=https

原因

  • レスポンスに30秒以上かかっているため
    • Herokuの問題ではなく、コードの問題
    • 自分の場合は、DBのconnection周りの問題でした
    • timeoutの原因は人それぞれだと思います

これらのエラーは、HTTP リクエストの完了に 30 秒以上かかる場合に発生します。多くの場合、次の原因で発生します。

H12 エラーへの対処 (リクエストタイムアウト) | Heroku Dev Center

解決

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?