{"action":"created","issue":{"url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/39","labels_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/39/comments","events_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/39/events","html_url":"https://github.com/lynndylanhurley/devise_token_auth/issues/39","id":44520954,"number":39,"title":"undefined method `match' for nil:NilClass","user":{"login":"krunal","id":77296,"avatar_url":"https://avatars.githubusercontent.com/u/77296?v=3","gravatar_id":"","url":"https://api.github.com/users/krunal","html_url":"https://github.com/krunal","followers_url":"https://api.github.com/users/krunal/followers","following_url":"https://api.github.com/users/krunal/following{/other_user}","gists_url":"https://api.github.com/users/krunal/gists{/gist_id}","starred_url":"https://api.github.com/users/krunal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krunal/subscriptions","organizations_url":"https://api.github.com/users/krunal/orgs","repos_url":"https://api.github.com/users/krunal/repos","events_url":"https://api.github.com/users/krunal/events{/privacy}","received_events_url":"https://api.github.com/users/krunal/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-10-01T02:05:06Z","updated_at":"2015-03-03T09:00:00Z","closed_at":"2014-10-15T17:35:43Z","body":"Getting below error while trying to integrate with facebook or linkedin.\r\n\r\nBacktrace \r\n---------------\r\n\r\nStarted GET \"/auth/linkedin\" for 127.0.0.1 at 2014-09-30 20:59:55 -0500\r\n  ActiveRecord::SchemaMigration Load (0.1ms)  SELECT `schema_migrations`.* FROM `schema_migrations`\r\n\r\n\r\nStarted GET \"/omniauth/linkedin?resource_class=User\" for 127.0.0.1 at 2014-09-30 20:59:55 -0500\r\nI, [2014-09-30T20:59:55.874961 #26214]  INFO -- omniauth: (linkedin) Request phase initiated.\r\n\r\n\r\nStarted GET \"/omniauth/linkedin/callback?resource_class=User&oauth_token=75--c7c0dd37-c720-425f-acac-f1218cbad003&oauth_verifier=93853\" for 127.0.0.1 at 2014-09-30 21:00:17 -0500\r\nI, [2014-09-30T21:00:17.880395 #26214]  INFO -- omniauth: (linkedin) Callback phase initiated.\r\nProcessing by DeviseTokenAuth::AuthController#omniauth_success as HTML\r\n  Parameters: {\"resource_class\"=>\"User\", \"oauth_token\"=>\"75--c7c0dd37-c720-425f-acac-f1218cbad003\", \"oauth_verifier\"=>\"93853\", \"provider\"=>\"linkedin\"}\r\n  User Load (0.2ms)  SELECT  `users`.* FROM `users`  WHERE `users`.`uid` = '2UgVGWV5v_' AND `users`.`provider` = 'linkedin'  ORDER BY `users`.`id` ASC LIMIT 1\r\nCompleted 500 Internal Server Error in 49ms\r\n\r\nNoMethodError (undefined method `match' for nil:NilClass):\r\n  devise_token_auth (0.1.28.beta6) app/controllers/devise_token_auth/auth_controller.rb:128:in `generate_url'\r\n  devise_token_auth (0.1.28.beta6) app/controllers/devise_token_auth/auth_controller.rb:36:in `omniauth_success'\r\n  actionpack (4.1.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action'\r\n  actionpack (4.1.6) lib/abstract_controller/base.rb:189:in `process_action'\r\n  actionpack (4.1.6) lib/action_controller/metal/rendering.rb:10:in `process_action'\r\n  actionpack (4.1.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action'\r\n  activesupport (4.1.6) lib/active_support/callbacks.rb:113:in `call'\r\n  activesupport (4.1.6) lib/active_support/callbacks.rb:113:in `call'\r\n  activesupport (4.1.6) lib/active_support/callbacks.rb:229:in `block in halting'\r\n  activesupport (4.1.6) lib/active_support/callbacks.rb:215:in `call'\r\n  activesupport (4.1.6) lib/active_support/callbacks.rb:215:in `block in halting_and_conditional'\r\n  activesupport (4.1.6) lib/active_support/callbacks.rb:166:in `call'\r\n  activesupport (4.1.6) lib/active_support/callbacks.rb:166:in `block in halting'\r\n  activesupport (4.1.6) lib/active_support/callbacks.rb:229:in `call'\r\n  activesupport (4.1.6) lib/active_support/callbacks.rb:229:in `block in halting'\r\n  activesupport (4.1.6) lib/active_support/callbacks.rb:166:in `call'\r\n  activesupport (4.1.6) lib/active_support/callbacks.rb:166:in `block in halting'\r\n  activesupport (4.1.6) lib/active_support/callbacks.rb:166:in `call'\r\n  activesupport (4.1.6) lib/active_support/callbacks.rb:166:in `block in halting'\r\n  activesupport (4.1.6) lib/active_support/callbacks.rb:166:in `call'\r\n  activesupport (4.1.6) lib/active_support/callbacks.rb:166:in `block in halting'\r\n  activesupport (4.1.6) lib/active_support/callbacks.rb:149:in `call'\r\n  activesupport (4.1.6) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'\r\n  activesupport (4.1.6) lib/active_support/callbacks.rb:86:in `call'\r\n  activesupport (4.1.6) lib/active_support/callbacks.rb:86:in `run_callbacks'\r\n  actionpack (4.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action'\r\n  actionpack (4.1.6) lib/action_controller/metal/rescue.rb:29:in `process_action'\r\n  actionpack (4.1.6) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'\r\n  activesupport (4.1.6) lib/active_support/notifications.rb:159:in `block in instrument'\r\n  activesupport (4.1.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\n  activesupport (4.1.6) lib/active_support/notifications.rb:159:in `instrument'\r\n  actionpack (4.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action'\r\n  actionpack (4.1.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'\r\n  activerecord (4.1.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action'\r\n  actionpack (4.1.6) lib/abstract_controller/base.rb:136:in `process'\r\n  actionview (4.1.6) lib/action_view/rendering.rb:30:in `process'\r\n  actionpack (4.1.6) lib/action_controller/metal.rb:196:in `dispatch'\r\n  actionpack (4.1.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'\r\n  actionpack (4.1.6) lib/action_controller/metal.rb:232:in `block in action'\r\n  actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:82:in `call'\r\n  actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:82:in `dispatch'\r\n  actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:50:in `call'\r\n  actionpack (4.1.6) lib/action_dispatch/journey/router.rb:73:in `block in call'\r\n  actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:in `each'\r\n  actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:in `call'\r\n  actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:678:in `call'\r\n  omniauth (1.2.2) lib/omniauth/strategy.rb:404:in `call_app!'\r\n  omniauth (1.2.2) lib/omniauth/strategy.rb:362:in `callback_phase'\r\n  omniauth-oauth (1.0.1) lib/omniauth/strategies/oauth.rb:58:in `callback_phase'\r\n  omniauth (1.2.2) lib/omniauth/strategy.rb:227:in `callback_call'\r\n  omniauth (1.2.2) lib/omniauth/strategy.rb:184:in `call!'\r\n  omniauth (1.2.2) lib/omniauth/strategy.rb:164:in `call'\r\n  omniauth (1.2.2) lib/omniauth/strategy.rb:186:in `call!'\r\n  omniauth (1.2.2) lib/omniauth/strategy.rb:164:in `call'\r\n  omniauth (1.2.2) lib/omniauth/strategy.rb:186:in `call!'\r\n  omniauth (1.2.2) lib/omniauth/strategy.rb:164:in `call'\r\n  omniauth (1.2.2) lib/omniauth/builder.rb:59:in `call'\r\n  warden (1.2.3) lib/warden/manager.rb:35:in `block in call'\r\n  warden (1.2.3) lib/warden/manager.rb:34:in `catch'\r\n  warden (1.2.3) lib/warden/manager.rb:34:in `call'\r\n  rack (1.5.2) lib/rack/etag.rb:23:in `call'\r\n  rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'\r\n  rack (1.5.2) lib/rack/head.rb:11:in `call'\r\n  actionpack (4.1.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call'\r\n  actionpack (4.1.6) lib/action_dispatch/middleware/flash.rb:254:in `call'\r\n  rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'\r\n  rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'\r\n  actionpack (4.1.6) lib/action_dispatch/middleware/cookies.rb:560:in `call'\r\n  activerecord (4.1.6) lib/active_record/query_cache.rb:36:in `call'\r\n  activerecord (4.1.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'\r\n  activerecord (4.1.6) lib/active_record/migration.rb:380:in `call'\r\n  actionpack (4.1.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\r\n  activesupport (4.1.6) lib/active_support/callbacks.rb:82:in `run_callbacks'\r\n  actionpack (4.1.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\r\n  actionpack (4.1.6) lib/action_dispatch/middleware/reloader.rb:73:in `call'\r\n  actionpack (4.1.6) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'\r\n  actionpack (4.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\r\n  actionpack (4.1.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\r\n  railties (4.1.6) lib/rails/rack/logger.rb:38:in `call_app'\r\n  railties (4.1.6) lib/rails/rack/logger.rb:20:in `block in call'\r\n  activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'\r\n  activesupport (4.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'\r\n  activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in `tagged'\r\n  railties (4.1.6) lib/rails/rack/logger.rb:20:in `call'\r\n  actionpack (4.1.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'\r\n  rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'\r\n  rack (1.5.2) lib/rack/runtime.rb:17:in `call'\r\n  activesupport (4.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'\r\n  rack (1.5.2) lib/rack/lock.rb:17:in `call'\r\n  actionpack (4.1.6) lib/action_dispatch/middleware/static.rb:64:in `call'\r\n  rack (1.5.2) lib/rack/sendfile.rb:112:in `call'\r\n  railties (4.1.6) lib/rails/engine.rb:514:in `call'\r\n  railties (4.1.6) lib/rails/application.rb:144:in `call'\r\n  rack (1.5.2) lib/rack/lock.rb:17:in `call'\r\n  rack (1.5.2) lib/rack/content_length.rb:14:in `call'\r\n  rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'\r\n  /home/krunal/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'\r\n  /home/krunal/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'\r\n  /home/krunal/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/comments/76908912","html_url":"https://github.com/lynndylanhurley/devise_token_auth/issues/39#issuecomment-76908912","issue_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/39","id":76908912,"user":{"login":"phs1919","id":3271893,"avatar_url":"https://avatars.githubusercontent.com/u/3271893?v=3","gravatar_id":"","url":"https://api.github.com/users/phs1919","html_url":"https://github.com/phs1919","followers_url":"https://api.github.com/users/phs1919/followers","following_url":"https://api.github.com/users/phs1919/following{/other_user}","gists_url":"https://api.github.com/users/phs1919/gists{/gist_id}","starred_url":"https://api.github.com/users/phs1919/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phs1919/subscriptions","organizations_url":"https://api.github.com/users/phs1919/orgs","repos_url":"https://api.github.com/users/phs1919/repos","events_url":"https://api.github.com/users/phs1919/events{/privacy}","received_events_url":"https://api.github.com/users/phs1919/received_events","type":"User","site_admin":false},"created_at":"2015-03-03T08:59:59Z","updated_at":"2015-03-03T08:59:59Z","body":"I am having the same issue but I am not using angularjs. The following is my backtrace:\r\n\r\ndevise_token_auth (0.1.32.beta5) app/controllers/devise_token_auth/omniauth_callbacks_controller.rb:158:in `generate_url'\r\ndevise_token_auth (0.1.32.beta5) app/controllers/devise_token_auth/omniauth_callbacks_controller.rb:33:in `omniauth_success'\r\nactionpack (4.2.0) lib/abstract_controller/base.rb:198:in `process_action'\r\nactionpack (4.2.0) lib/action_controller/metal/rendering.rb:10:in `process_action'\r\nactionpack (4.2.0) lib/abstract_controller/callbacks.rb:20:in `block in process_action'\r\nactivesupport (4.2.0) lib/active_support/callbacks.rb:117:in `call'\r\nactivesupport (4.2.0) lib/active_support/callbacks.rb:117:in `call'\r\nactivesupport (4.2.0) lib/active_support/callbacks.rb:169:in `block in halting'\r\nactivesupport (4.2.0) lib/active_support/callbacks.rb:169:in `call'\r\nactivesupport (4.2.0) lib/active_support/callbacks.rb:169:in `block in halting'\r\nactivesupport (4.2.0) lib/active_support/callbacks.rb:92:in `call'\r\nactivesupport (4.2.0) lib/active_support/callbacks.rb:92:in `_run_callbacks'\r\nactivesupport (4.2.0) lib/active_support/callbacks.rb:734:in `_run_process_action_callbacks'\r\nactivesupport (4.2.0) lib/active_support/callbacks.rb:81:in `run_callbacks'\r\nactionpack (4.2.0) lib/abstract_controller/callbacks.rb:19:in `process_action'\r\nactionpack (4.2.0) lib/action_controller/metal/rescue.rb:29:in `process_action'\r\nactionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'\r\nactivesupport (4.2.0) lib/active_support/notifications.rb:164:in `block in instrument'\r\nactivesupport (4.2.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\nactivesupport (4.2.0) lib/active_support/notifications.rb:164:in `instrument'\r\nactionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'\r\nactiverecord (4.2.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'\r\nactionpack (4.2.0) lib/abstract_controller/base.rb:137:in `process'\r\nactionview (4.2.0) lib/action_view/rendering.rb:30:in `process'\r\nactionpack (4.2.0) lib/action_controller/metal.rb:195:in `dispatch'\r\nactionpack (4.2.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'\r\nactionpack (4.2.0) lib/action_controller/metal.rb:236:in `block in action'\r\nactionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:73:in `call'\r\nactionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'\r\nactionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:42:in `serve'\r\nactionpack (4.2.0) lib/action_dispatch/routing/mapper.rb:49:in `serve'\r\nactionpack (4.2.0) lib/action_dispatch/journey/router.rb:43:in `block in serve'\r\nactionpack (4.2.0) lib/action_dispatch/journey/router.rb:30:in `each'\r\nactionpack (4.2.0) lib/action_dispatch/journey/router.rb:30:in `serve'\r\nactionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:802:in `call'\r\nomniauth (1.2.2) lib/omniauth/strategy.rb:186:in `call!'\r\nomniauth (1.2.2) lib/omniauth/strategy.rb:164:in `call'\r\nomniauth (1.2.2) lib/omniauth/builder.rb:59:in `call'\r\nactionpack (4.2.0) lib/action_dispatch/middleware/flash.rb:260:in `call'\r\nrack (1.6.0) lib/rack/session/abstract/id.rb:225:in `context'\r\nrack (1.6.0) lib/rack/session/abstract/id.rb:220:in `call'\r\nactionpack (4.2.0) lib/action_dispatch/middleware/cookies.rb:560:in `call'\r\nrack (1.6.0) lib/rack/methodoverride.rb:22:in `call'\r\nrack (1.6.0) lib/rack/session/abstract/id.rb:225:in `context'\r\nrack (1.6.0) lib/rack/session/abstract/id.rb:220:in `call'\r\nwarden (1.2.3) lib/warden/manager.rb:35:in `block in call'\r\nwarden (1.2.3) lib/warden/manager.rb:34:in `catch'\r\nwarden (1.2.3) lib/warden/manager.rb:34:in `call'\r\nrack (1.6.0) lib/rack/etag.rb:24:in `call'\r\nrack (1.6.0) lib/rack/conditionalget.rb:25:in `call'\r\nrack (1.6.0) lib/rack/head.rb:13:in `call'\r\nactionpack (4.2.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'\r\nactiverecord (4.2.0) lib/active_record/query_cache.rb:36:in `call'\r\nactiverecord (4.2.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:647:in `call'\r\nactiverecord (4.2.0) lib/active_record/migration.rb:378:in `call'\r\nactionpack (4.2.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\r\nactivesupport (4.2.0) lib/active_support/callbacks.rb:88:in `call'\r\nactivesupport (4.2.0) lib/active_support/callbacks.rb:88:in `_run_callbacks'\r\nactivesupport (4.2.0) lib/active_support/callbacks.rb:734:in `_run_call_callbacks'\r\nactivesupport (4.2.0) lib/active_support/callbacks.rb:81:in `run_callbacks'\r\nactionpack (4.2.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\r\nactionpack (4.2.0) lib/action_dispatch/middleware/reloader.rb:73:in `call'\r\nactionpack (4.2.0) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'\r\nactionpack (4.2.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\r\nactionpack (4.2.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\r\nrailties (4.2.0) lib/rails/rack/logger.rb:38:in `call_app'\r\nrailties (4.2.0) lib/rails/rack/logger.rb:20:in `block in call'\r\nactivesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'\r\nactivesupport (4.2.0) lib/active_support/tagged_logging.rb:26:in `tagged'\r\nactivesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in `tagged'\r\nrailties (4.2.0) lib/rails/rack/logger.rb:20:in `call'\r\nactionpack (4.2.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'\r\nrack (1.6.0) lib/rack/runtime.rb:18:in `call'\r\nactivesupport (4.2.0) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'\r\nrack (1.6.0) lib/rack/lock.rb:17:in `call'\r\nactionpack (4.2.0) lib/action_dispatch/middleware/static.rb:113:in `call'\r\nrailties (4.2.0) lib/rails/engine.rb:518:in `call'\r\nrailties (4.2.0) lib/rails/application.rb:164:in `call'\r\nrack (1.6.0) lib/rack/lock.rb:17:in `call'\r\nrack (1.6.0) lib/rack/content_length.rb:15:in `call'\r\nrack (1.6.0) lib/rack/handler/webrick.rb:89:in `service'\r\n/Users/richardpark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'\r\n/Users/richardpark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'\r\n/Users/richardpark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'\r\n\r\nI am using the following gems:\r\n\r\ngem 'rails', '4.2'\r\ngem 'rails-api', '~> 0.4.0'\r\ngem 'spring', :group => :development\r\ngem 'sqlite3'\r\ngem 'devise_token_auth', '~> 0.1.31'\r\n\r\n# OmniAuth authentication provider gems\r\ngem 'omniauth-facebook', '~> 2.0.1'\r\ngem 'omniauth-twitter', '~> 1.1.0'\r\n\r\nI would really appreciate any help! Thanks :)"}}