teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

heroku logsの詳細を追記しました

2019/05/30 15:30

投稿

mtmiddle
mtmiddle

スコア12

title CHANGED
File without changes
body CHANGED
@@ -61,6 +61,20 @@
61
61
  main.pyに記載した二つの秘密鍵と、heroku に登録した秘密鍵は確かにあっているのですが、
62
62
  heroku logsにはkey error from none とあり、どうやら鍵の設定に問題があるように見えました。
63
63
 
64
+ logsの内容も示します。
65
+ ```logs
66
+ 2019-05-30T13:59:38.165509+00:00 heroku[web.1]: Starting process with command `python main.py`
67
+ 2019-05-30T13:59:40.213351+00:00 heroku[web.1]: State changed from starting to crashed
68
+ 2019-05-30T13:59:40.101461+00:00 app[web.1]: Traceback (most recent call last):
69
+ 2019-05-30T13:59:40.101485+00:00 app[web.1]: File "main.py", line 17, in <module>
70
+ 2019-05-30T13:59:40.101615+00:00 app[web.1]: YOUR_CHANNEL_ACCESS_TOKEN = os.environ["秘密鍵"]
71
+ 2019-05-30T13:59:40.101620+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/os.py", line 669, in __getitem__
72
+ 2019-05-30T13:59:40.101918+00:00 app[web.1]: raise KeyError(key) from None
73
+ 2019-05-30T13:59:40.101932+00:00 app[web.1]: KeyError: '秘密鍵'
74
+ 2019-05-30T13:59:40.194874+00:00 heroku[web.1]: Process exited with status 1
75
+ ! Logs eventsource failed with: 503 Service Unavailable
76
+ ```
77
+
64
78
  webhookに接続完了するためにお力添えもらえないでしょうか?
65
79
 
66
80