twitterログインをしようとすると、herokuでよく下記のエラーに出くわします。heroku openしrootに遷移した時は表示させたい画面が表示されています。
そこでログをみてみたのですが、いまいちログから何がエラー原因なのかわかりません。そこでどのようにログを捉えていけばいいのかということを教えていただきたいです。またもし今回のエラー原因が究明できるようでしたら、お知恵をお貸しいただけるととても嬉しいです!
何卒よろしくお願いします
We're sorry, but something went wrong. If you are the application owner check the logs for more information.
## 考えたエラー原因
twitterログインを用いているのですが、omniauth-twitter周りに問題があるのではないかと思い、heroku configを見た所、twitter_keyなどが登録してなかったので登録しておきました。ただ登録後もエラーは続いています。
twitterログインを実装してからこのエラーが出るようになった気がします。なのでその辺りが怪しいかと
メアド、アプリ名に関してはteratail仕様のものです
Use Ctrl-C to stop 2020-02-05T12:26:21.601204+00:00 app[web.1]: I, [2020-02-05T12:26:21.601041 #4] INFO -- : [35de8212-9100-4d93-9c03-d2bd06d07f] Started POST "/auth/twitter" for 106.73.6.161 at 2020-02-05 12:26:21 +0000 2020-02-05T12:26:21.601892+00:00 app[web.1]: I, [2020-02-05T12:26:21.601818 #4] INFO -- omniauth: (twitter) Request phase initiated. 2020-02-05T12:26:21.690528+00:00 app[web.1]: F, [2020-02-05T12:26:21.690244 #4] FATAL -- : [35de8212-9100-4d93-9c03-d2bd06d07f] 2020-02-05T12:26:21.690532+00:00 app[web.1]: [35de8212-9100-4d93-9c03-d2bd06d07f] OAuth::Unauthorized (403 Forbidden): 2020-02-05T12:26:21.690534+00:00 app[web.1]: [35de8212-9100-4d93-9c03-d2bd06d07f] 2020-02-05T12:26:21.690536+00:00 app[web.1]: [35de8212-9100-4d93-9c03-d2bd06d07f] oauth (0.5.4) lib/oauth/consumer.rb:236:in `token_request' 2020-02-05T12:26:21.690538+00:00 app[web.1]: [35de8212-9100-4d93-9c03-d2bd06d07f] oauth (0.5.4) lib/oauth/consumer.rb:155:in `get_request_token' 2020-02-05T12:26:21.690541+00:00 app[web.1]: [35de8212-9100-4d93-9c03-d2bd06d07f] 省略 2020-02-05T12:26:25.871173+00:00 app[web.1]: [dac051b0-6219-4536-b64e-53f1e5fc300e] actionpack (6.0.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:32:in `call' 2020-02-05T12:26:25.871175+00:00 app[web.1]: [dac051b0-6219-4536-b64e-53f1e5fc300e] actionpack (6.0.2.1) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' 2020-02-05T12:26:25.871177+00:00 app[web.1]: [dac051b0-6219-4536-b64e-53f1e5fc300e] railties (6.0.2.1) lib/rails/rack/logger.rb:38:in `call_app' 2020-02-05T12:26:25.871179+00:00 app[web.1]: [dac051b0-6219-4536-b64e-53f1e5fc300e] railties (6.0.2.1) lib/rails/rack/logger.rb:26:in `block in call' 2020-02-05T12:26:25.871181+00:00 app[web.1]: [dac051b0-6219-4536-b64e-53f1e5fc300e] activesupport (6.0.2.1) lib/active_support/tagged_logging.rb:80:in `block in tagged' 2020-02-05T12:26:25.871183+00:00 app[web.1]: [dac051b0-6219-4536-b64e-53f1e5fc300e] activesupport (6.0.2.1) lib/active_support/tagged_logging.rb:28:in `tagged' 2020-02-05T12:26:25.871185+00:00 app[web.1]: [dac051b0-6219-4536-b64e-53f1e5fc300e] activesupport (6.0.2.1) lib/active_support/tagged_logging.rb:80:in `tagged' 2020-02-05T12:26:25.871187+00:00 app[web.1]: [dac051b0-6219-4536-b64e-53f1e5fc300e] railties (6.0.2.1) lib/rails/rack/logger.rb:26:in `call' 2020-02-05T12:26:25.871189+00:00 app[web.1]: [dac051b0-6219-4536-b64e-53f1e5fc300e] actionpack (6.0.2.1) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' 2020-02-05T12:26:25.871191+00:00 app[web.1]: [dac051b0-6219-4536-b64e-53f1e5fc300e] actionpack (6.0.2.1) lib/action_dispatch/middleware/request_id.rb:27:in `call' 2020-02-05T12:26:25.871193+00:00 app[web.1]: [dac051b0-6219-4536-b64e-53f1e5fc300e] rack (2.1.1) lib/rack/method_override.rb:24:in `call' 2020-02-05T12:26:25.871195+00:00 app[web.1]: [dac051b0-6219-4536-b64e-53f1e5fc300e] rack (2.1.1) lib/rack/runtime.rb:24:in `call' 2020-02-05T12:26:25.871197+00:00 app[web.1]: [dac051b0-6219-4536-b64e-53f1e5fc300e] activesupport (6.0.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' 2020-02-05T12:26:25.871199+00:00 app[web.1]: [dac051b0-6219-4536-b64e-53f1e5fc300e] actionpack (6.0.2.1) lib/action_dispatch/middleware/executor.rb:14:in `call' 2020-02-05T12:26:25.871201+00:00 app[web.1]: [dac051b0-6219-4536-b64e-53f1e5fc300e] actionpack (6.0.2.1) lib/action_dispatch/middleware/static.rb:126:in `call' 2020-02-05T12:26:25.871203+00:00 app[web.1]: [dac051b0-6219-4536-b64e-53f1e5fc300e] rack (2.1.1) lib/rack/sendfile.rb:113:in `call' 2020-02-05T12:26:25.871213+00:00 app[web.1]: [dac051b0-6219-4536-b64e-53f1e5fc300e] actionpack (6.0.2.1) lib/action_dispatch/middleware/host_authorization.rb:77:in `call' 2020-02-05T12:26:25.871215+00:00 app[web.1]: [dac051b0-6219-4536-b64e-53f1e5fc300e] railties (6.0.2.1) lib/rails/engine.rb:526:in `call' 2020-02-05T12:26:25.871217+00:00 app[web.1]: [dac051b0-6219-4536-b64e-53f1e5fc300e] puma (4.3.1) lib/puma/configuration.rb:228:in `call' 2020-02-05T12:26:25.871219+00:00 app[web.1]: [dac051b0-6219-4536-b64e-53f1e5fc300e] puma (4.3.1) lib/puma/server.rb:681:in `handle_request' 2020-02-05T12:26:25.871221+00:00 app[web.1]: [dac051b0-6219-4536-b64e-53f1e5fc300e] puma (4.3.1) lib/puma/server.rb:472:in `process_client' 2020-02-05T12:26:25.871223+00:00 app[web.1]: [dac051b0-6219-4536-b64e-53f1e5fc300e] puma (4.3.1) lib/puma/server.rb:328:in `block in run' 2020-02-05T12:26:25.871225+00:00 app[web.1]: [dac051b0-6219-4536-b64e-53f1e5fc300e] puma (4.3.1) lib/puma/thread_pool.rb:134:in `block in spawn_thread'
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/02/05 11:30
退会済みユーザー
2020/02/05 12:37
2020/02/05 12:58