打开我的heroku应用程序时出现错误,提示代码= H12,状态为503

时间:2020-01-04 06:25:53

标签: node.js heroku

尝试浏览要从db中提取的内容时尤其会发生错误。

例如 如果我转到登录页面,那么好又简单,没有连接数据库,它将打开。

但是当尝试转到/books时,它将抛出一个错误,并且没有问题/register/login,但是在登录或注册后会发生相同的错误。

登录landing page/login时记录

at=info method=GET path="/stylesheets/landing.css" host=zen-like-name.herokuapp.com request_id='some hex numbers' fwd="ip" dyno=web.1 connect=0ms service=4ms status=304 bytes=237 protocol=https

at=info method=GET path="/stylesheets/main.css" host=zen-like-name.herokuapp.com request_id='some hex numbers' fwd="ip" dyno=web.1 connect=0ms service=4ms status=304 bytes=237 protocol=https

尝试登录或浏览/ books页面时记录

at=error code=H12 desc="Request timeout" method=POST path="/login" host=zen-like-name.herokuapp.com request_id="some hex numbers" fwd="IP" dyno=web.1 connect=0ms service=30000ms status=503 bytes=0 protocol=https

at=error code=H12 desc="Request timeout" method=GET path="/books" host=zen-like-name.herokuapp.com request_id="some hex numbers" fwd="IP" dyno=web.1 connect=0ms service=30000ms status=503 bytes=0 protocol=https
  1. noje.js
  2. mongolab已连接到应用程序
  3. 在heroko 'heroku run npm install mongoose'上安装猫鼬

0 个答案:

没有答案
相关问题