{"action":"opened","issue":{"url":"https://api.github.com/repos/thiago-sydow/controle-de-ponto/issues/169","labels_url":"https://api.github.com/repos/thiago-sydow/controle-de-ponto/issues/169/labels{/name}","comments_url":"https://api.github.com/repos/thiago-sydow/controle-de-ponto/issues/169/comments","events_url":"https://api.github.com/repos/thiago-sydow/controle-de-ponto/issues/169/events","html_url":"https://github.com/thiago-sydow/controle-de-ponto/issues/169","id":109153116,"number":169,"title":"Moped::Errors::QueryFailure: The operation: #<Moped::Protocol::Query\n  @length=133\n  @request_id=11\n  @response_to=0\n  @op_code=2004\n  @flags=[]\n  @full_collection_name=\"heroku_app35529032.users\"\n  @skip=0\n  @limit=-1\n  @selector={\"$query\"=>{\"email\"=>\"lea","user":{"login":"thiago-sydow","id":871582,"avatar_url":"https://avatars.githubusercontent.com/u/871582?v=3","gravatar_id":"","url":"https://api.github.com/users/thiago-sydow","html_url":"https://github.com/thiago-sydow","followers_url":"https://api.github.com/users/thiago-sydow/followers","following_url":"https://api.github.com/users/thiago-sydow/following{/other_user}","gists_url":"https://api.github.com/users/thiago-sydow/gists{/gist_id}","starred_url":"https://api.github.com/users/thiago-sydow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiago-sydow/subscriptions","organizations_url":"https://api.github.com/users/thiago-sydow/orgs","repos_url":"https://api.github.com/users/thiago-sydow/repos","events_url":"https://api.github.com/users/thiago-sydow/events{/privacy}","received_events_url":"https://api.github.com/users/thiago-sydow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-30T18:36:04Z","updated_at":"2015-09-30T18:36:04Z","closed_at":null,"body":"View details in Rollbar: [https://rollbar.com/thiago-sydow/Meu-Controle-de-Ponto/items/37/](https://rollbar.com/thiago-sydow/Meu-Controle-de-Ponto/items/37/)\n\n```\n\nMoped::Errors::QueryFailure: The operation: #<Moped::Protocol::Query\n  @length=133\n  @request_id=11\n  @response_to=0\n  @op_code=2004\n  @flags=[]\n  @full_collection_name=\"heroku_app35529032.users\"\n  @skip=0\n  @limit=-1\n  @selector={\"$query\"=>{\"email\"=>\"leandromaduro1@hotmail.com\"}, \"$orderby\"=>{:_id=>1}}\n  @fields=nil>\nfailed with error 13: \"not authorized for query on heroku_app35529032.users\"\n\nSee https://github.com/mongodb/mongo/blob/master/docs/errors.md\nfor details about this error.\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/moped-2.0.5/lib/moped/operation/read.rb\", line 50, in block in execute\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/moped-2.0.5/lib/moped/node.rb\", line 594, in []\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/moped-2.0.5/lib/moped/node.rb\", line 594, in block (2 levels) in flush\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/moped-2.0.5/lib/moped/node.rb\", line 593, in map\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/moped-2.0.5/lib/moped/node.rb\", line 593, in block in flush\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/moped-2.0.5/lib/moped/node.rb\", line 617, in block in logging\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb\", line 164, in block in instrument\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/notifications/instrumenter.rb\", line 20, in instrument\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb\", line 164, in instrument\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/moped-2.0.5/lib/moped/instrumentable.rb\", line 31, in instrument\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/moped-2.0.5/lib/moped/node.rb\", line 616, in logging\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/moped-2.0.5/lib/moped/node.rb\", line 587, in flush\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/moped-2.0.5/lib/moped/node.rb\", line 391, in process\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/moped-2.0.5/lib/moped/operation/read.rb\", line 48, in execute\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/moped-2.0.5/lib/moped/node.rb\", line 648, in read\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/moped-2.0.5/lib/moped/node.rb\", line 411, in query\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/moped-2.0.5/lib/moped/query.rb\", line 129, in block in first\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/moped-2.0.5/lib/moped/cluster.rb\", line 249, in block in with_primary\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/moped-2.0.5/lib/moped/node.rb\", line 204, in block in ensure_primary\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/moped-2.0.5/lib/moped/executable.rb\", line 25, in execute\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/moped-2.0.5/lib/moped/node.rb\", line 203, in ensure_primary\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/moped-2.0.5/lib/moped/cluster.rb\", line 248, in with_primary\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/moped-2.0.5/lib/moped/read_preference/primary.rb\", line 55, in block in with_node\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/moped-2.0.5/lib/moped/retryable.rb\", line 30, in call\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/moped-2.0.5/lib/moped/retryable.rb\", line 30, in with_retry\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/moped-2.0.5/lib/moped/read_preference/primary.rb\", line 54, in with_node\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/moped-2.0.5/lib/moped/query.rb\", line 128, in first\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/mongoid-4.0.2/lib/mongoid/query_cache.rb\", line 191, in block in first_with_cache\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/mongoid-4.0.2/lib/mongoid/query_cache.rb\", line 135, in with_cache\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/mongoid-4.0.2/lib/mongoid/query_cache.rb\", line 190, in first_with_cache\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/mongoid-4.0.2/lib/mongoid/contextual/mongo.rb\", line 199, in block (2 levels) in first\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/mongoid-4.0.2/lib/mongoid/contextual/mongo.rb\", line 545, in with_sorting\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/mongoid-4.0.2/lib/mongoid/contextual/mongo.rb\", line 198, in block in first\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/mongoid-4.0.2/lib/mongoid/contextual/mongo.rb\", line 457, in try_cache\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/mongoid-4.0.2/lib/mongoid/contextual/mongo.rb\", line 197, in first\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/mongoid-4.0.2/lib/mongoid/contextual.rb\", line 20, in first\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/orm_adapter-0.5.0/lib/orm_adapter/adapters/mongoid.rb\", line 28, in find_first\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/devise-3.5.1/lib/devise/models/authenticatable.rb\", line 246, in find_first_by_auth_conditions\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/devise-3.5.1/lib/devise/models/authenticatable.rb\", line 242, in find_for_authentication\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/devise-3.5.1/lib/devise/models/database_authenticatable.rb\", line 156, in find_for_database_authentication\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/devise-3.5.1/lib/devise/strategies/database_authenticatable.rb\", line 8, in authenticate!\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/strategies/base.rb\", line 53, in _run!\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/proxy.rb\", line 354, in block in _run_strategies_for\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/proxy.rb\", line 349, in each\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/proxy.rb\", line 349, in _run_strategies_for\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/proxy.rb\", line 319, in _perform_authentication\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/proxy.rb\", line 127, in authenticate!\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/devise-3.5.1/app/controllers/devise/sessions_controller.rb\", line 17, in create\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_controller/metal/implicit_render.rb\", line 4, in send_action\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/abstract_controller/base.rb\", line 198, in process_action\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_controller/metal/rendering.rb\", line 10, in process_action\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/abstract_controller/callbacks.rb\", line 20, in block in process_action\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb\", line 117, in call\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb\", line 117, in call\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb\", line 234, in block in halting\n  File \"/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb\", li"}}