Q&A
javaとherokuでラインボット(オウム返し)を作成しているなかでH=10とstatus=503のエラーが出ています。
有識者の方、助けて下さい。
##現状
サーバーを建てるまでは成功しており(Build succeededとなっている)、LINEDeveroperでWEBHOOKを設定しようとすると503のステータスになっています。
「code=H10 status=503」で検索をかけるとheroku restartが多くヒットしたので、heroku restartをしてもエラーコードは変わりません。
##わからないこと
①サーバーではBuild succeededとなっているのにも関わらずstatusが503になっている理由
②ラインボットはリファレンス通りだとPOST通信で行っているはずなのにエラー文にはmethod=GETになっている
##ログ
2021-08-16T14:46:23.787639+00:00 app[web.1]: Setting JAVA_TOOL_OPTIONS defaults based on dyno size. Custom settings will override them. 2021-08-16T14:46:23.790880+00:00 app[web.1]: Picked up JAVA_TOOL_OPTIONS: -Xmx300m -Xss512k -XX:CICompilerCount=2 -Dfile.encoding=UTF-8 2021-08-16T14:46:23.839299+00:00 app[web.1]: no main manifest attribute, in sample-spring-boot-echo/build/libs/sample-spring-boot-echo-4.5.0-SNAPSHOT-plain.jar 2021-08-16T14:46:23.887805+00:00 heroku[web.1]: Process exited with status 1 2021-08-16T14:46:23.948259+00:00 heroku[web.1]: State changed from starting to crashed 2021-08-16T14:46:27.081780+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=POST path="/callback" host=tyappi.herokuapp.com request_id=d1246408-45a1-48ed-9d77-e38f8125d229 fwd="147.92.150.194" dyno= connect= service= status=503 bytes= protocol=https 2021-08-16T14:46:46.263477+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=POST path="/callback" host=tyappi.herokuapp.com request_id=cb1fe2b2-a79e-472e-957e-6341759fb5ff fwd="147.92.150.194" dyno= connect= service= status=503 bytes= protocol=https 2021-08-16T14:47:03.658437+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=tyappi.herokuapp.com request_id=0aa295f6-faef-4439-85de-6b6b7d06c610 fwd="133.201.1.224" dyno= connect= service= status=503 bytes= protocol=https 2021-08-16T14:47:03.927966+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=tyappi.herokuapp.com request_id=c6d53414-d995-41ab-a183-c94acdeaf944 fwd="133.201.1.224" dyno= connect= service= status=503 bytes= protocol=https
下記のような回答は推奨されていません。
このような回答には修正を依頼しましょう。
2021/08/17 15:22