2017-02-12 15 views
1

私はweatherbotを作るのにapi aiを使っています。私はwebhookを作っています。しかし、それは英雄では機能しません。Pythonはherokuで動作しません

ログ:

2017-02-12T01:04:09.580619+00:00 heroku[slug-compiler]: Slug compilation started 
2017-02-12T01:04:09.580628+00:00 heroku[slug-compiler]: Slug compilation finished 
2017-02-12T01:04:09.431329+00:00 app[api]: Deploy f5b127a by user [email protected] 
2017-02-12T01:04:09.431329+00:00 app[api]: Release v8 created by user [email protected] 
2017-02-12T01:04:09.768517+00:00 app[api]: Release v8 created by user [email protected] 
2017-02-12T01:04:55.382953+00:00 heroku[slug-compiler]: Slug compilation started 
2017-02-12T01:04:55.382960+00:00 heroku[slug-compiler]: Slug compilation finished 
2017-02-12T01:04:55.273050+00:00 app[api]: Deploy f5b127a by user [email protected] 
2017-02-12T01:04:55.273050+00:00 app[api]: Release v9 created by user [email protected] 
2017-02-12T01:04:55.517592+00:00 app[api]: Release v9 created by user [email protected] 
2017-02-12T01:05:02.283592+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=POST path="/webhook" host=botmia.herokuapp.com request_id=cf6fc4f6-fd84-415b-b2de-0c69e140ef5b fwd="54.198.43.155" dyno= connect= service= status=503 bytes= 
2017-02-12T01:08:56.636508+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=POST path="/webhook" host=botmia.herokuapp.com request_id=2e1b3ba4-c495-431e-8695-7dd742258201 fwd="54.198.43.155" dyno= connect= service= status=503 bytes= 
2017-02-12T01:12:28.027455+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=botmia.herokuapp.com request_id=23238026-ba99-45da-a0d4-94b426e8dbb8 fwd="117.5.143.247" dyno= connect= service= status=503 bytes= 
2017-02-12T01:12:29.548164+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=botmia.herokuapp.com request_id=95a8d5b9-639f-405e-a83e-a4603ab44f1c fwd="117.5.143.247" dyno= connect= service= status=503 bytes= 

Host on Heroku

Source

A similar error しかし、私を助けることによって おかげでみんなを動作しません。私はあなたがあなたのウェブdynos(https://devcenter.heroku.com/articles/error-codes#h14-no-web-dynos-running)を開始していないことを意味し、コードH14を、持っているように見える、あなたのエラーログからHerokuのに&のpython

答えて

0

をApi.aiするための新たな一人です。端末からheroku ps:scale web=1を実行して、dynoを起動できます(herokuコマンドラインツールがインストールされていると仮定します)。あなたのサイトが機能するためには少なくとも1 dynoが稼働している必要があります。成功し/webhookアクセスにPOSTリクエストを作り、それをやった後

$ git clone https://github.com/TrungNguyen1909/BotMia 
$ cd BotMia 
$ heroku create 
$ git push heroku master 

は、私は私のマシン上のアプリケーションのディレクトリで実行し、次のコマンドを使用して新しいHerokuのサイト上で実行して成功したあなたのアプリを取得することができましたあなたがログに見ることができるように、そのエンドポイント:

Herokuのために

2017-02-12T01:53:12.721050+00:00 heroku[router]: at=info method=POST path="/webhook" host=MY_HOST request_id=REQ_ID fwd="IP" dyno=web.1 connect=1ms service=4ms status=500 bytes=452

関連する問題