Skip to content

Instantly share code, notes, and snippets.

@pupca
Created April 11, 2011 10:30
Show Gist options
  • Save pupca/913333 to your computer and use it in GitHub Desktop.
Save pupca/913333 to your computer and use it in GitHub Desktop.
A NoMethodError occurred in #:
undefined method `closed?' for nil:NilClass
/usr/local/lib/ruby/1.8/net/http.rb:1060:in `__request__'
-------------------------------
Request:
-------------------------------
* URL : http://www.slevomor.cz/auth/foursquare/callback?code=GRBCCFEPECFK3MTY5FCEDSF4SKWA4GH1EPP2KBSAFMB22ZWX
* IP address: 94.230.148.42
* Parameters: {"code"=>"GRBCCFEPECFK3MTY5FCEDSF4SKWA4GH1EPP2KBSAFMB22ZWX"}
- Zobrazit citovaný text -
* HTTP_COOKIE : __utmz=90794328.1302277700.189.40.utmcsr=localhost:3000|utmccn=(referral)|utmcmd=referral|utmcct=/slevy; _session_id=99e38e8fcfa726fe5ad0bdab4355e898; __utma=90794328.1144246694.1295691350.1302507559.1302510713.198; __utmc=90794328; __utmb=90794328.40.10.1302510713
* HTTP_HOST : www.slevomor.cz
* HTTP_USER_AGENT : Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16
* PATH_INFO : /auth/foursquare/callback
* QUERY_STRING : code=GRBCCFEPECFK3MTY5FCEDSF4SKWA4GH1EPP2KBSAFMB22ZWX
* REMOTE_ADDR : 94.230.148.42
* REMOTE_PORT : 62343
* REQUEST_METHOD : GET
* REQUEST_URI : /auth/foursquare/callback?code=GRBCCFEPECFK3MTY5FCEDSF4SKWA4GH1EPP2KBSAFMB22ZWX
* SCRIPT_NAME :
* SERVER_ADDR : 178.217.244.3
* SERVER_ADMIN : [email protected]
* SERVER_NAME : www.slevomor.cz
* SERVER_PORT : 80
* SERVER_PROTOCOL : HTTP/1.1
* SERVER_SOFTWARE : Apache/2.2.16 (FreeBSD) mod_ssl/2.2.16 OpenSSL/0.9.8n DAV/2 Phusion_Passenger/2.2.15
* UNIQUE_ID : TaLKUrLZ9AIAAKAqbJAAAAAj
* _ : _
* action_dispatch.parameter_filter : [:password, :password_confirmation, /RAW_POST_DATA/]
* action_dispatch.remote_ip : 94.230.148.42
* action_dispatch.request.content_type :
* action_dispatch.request.parameters : {"code"=>"GRBCCFEPECFK3MTY5FCEDSF4SKWA4GH1EPP2KBSAFMB22ZWX"}
* action_dispatch.request.path_parameters : {}
* action_dispatch.request.query_parameters : {"code"=>"GRBCCFEPECFK3MTY5FCEDSF4SKWA4GH1EPP2KBSAFMB22ZWX"}
* action_dispatch.request.request_parameters: {}
* action_dispatch.secret_token : a95cb671e388f7f4786da186b4e42be4b14b82265cb7369a1b45f6aac053a678960e2a0166fff2fd798d93684f59c86569f66cbbc3dd80af5ca0e7de7610bea2
* exception_notifier.options : {:ignore_exceptions=>[ActiveRecord::RecordNotFound, AbstractController::ActionNotFound, ActionController::RoutingError], :email_prefix=>"[Slevomor] ", :sender_address=>"\"notifier\" <[email protected]>", :exception_recipients=>["[email protected]"]}
* omniauth.origin : http://www.slevomor.cz/users/sign_in
* omniauth.strategy : #<OmniAuth::Strategies::Foursquare:0x807ec2070>
* rack.errors : #<IO:0x800e53d70>
* rack.input : #<PhusionPassenger::Utils::RewindableInput:0x807ecdf10>
* rack.multiprocess : true
* rack.multithread : false
* rack.request.cookie_hash : {"__utma"=>"90794328.1144246694.1295691350.1302507559.1302510713.198", "__utmb"=>"90794328.40.10.1302510713", "__utmc"=>"90794328", "_session_id"=>"99e38e8fcfa726fe5ad0bdab4355e898", "__utmz"=>"90794328.1302277700.189.40.utmcsr=localhost:3000|utmccn=(referral)|utmcmd=referral|utmcct=/slevy"}
* rack.request.cookie_string : __utmz=90794328.1302277700.189.40.utmcsr=localhost:3000|utmccn=(referral)|utmcmd=referral|utmcct=/slevy; _session_id=99e38e8fcfa726fe5ad0bdab4355e898; __utma=90794328.1144246694.1295691350.1302507559.1302510713.198; __utmc=90794328; __utmb=90794328.40.10.1302510713
* rack.request.query_hash : {"code"=>"GRBCCFEPECFK3MTY5FCEDSF4SKWA4GH1EPP2KBSAFMB22ZWX"}
* rack.request.query_string : code=GRBCCFEPECFK3MTY5FCEDSF4SKWA4GH1EPP2KBSAFMB22ZWX
* rack.run_once : false
* rack.session : {"_csrf_token"=>"TJ/MzIDWPLD9ZSU2xX1pd/TpMqMYbwR4Mc5QTsOWpYw=", "omniauth"=>{"user_info"=>{"name"=>"Martin Popelak", "location"=>"Prague", "urls"=>{"Website"=>nil, "Twitter"=>"http://twitter.com/Pupca"}, "nickname"=>"Pupca", "description"=>"", "image"=>"http://a1.twimg.com/profile_images/101596501/n1280010136_30039690_1534_normal.jpg"}, "uid"=>"25100025", "credentials"=>{"token"=>"25100025-5D1WRlZAHzcREbza7H6Lei7c76XDfyEmGkQECzmU2", "secret"=>"fnG08ksdxxW3a70Cg930ZHR54apmeeWh9vj4"}, "provider"=>"twitter"}, "oauth"=>{"twitter"=>{"callback_confirmed"=>true}}, "mesto"=>"Praha"}
* rack.session.options : {:path=>"/", :domain=>nil, :httponly=>true, :expire_after=>nil, :id=>"99e38e8fcfa726fe5ad0bdab4355e898", :secure=>false}
* rack.session.record : #<ActiveRecord::SessionStore::Session:0x807ec6418>
* rack.url_scheme : http
* rack.version : [1, 0]
* warden : #<Warden::Proxy:0x807ec4870>
* Process: 40219
* Server : server7
-------------------------------
Backtrace:
-------------------------------
/usr/local/lib/ruby/1.8/net/http.rb:1060:in `__request__'
rest-client (1.6.1) lib/restclient/net_http_ext.rb:17:in `request'
faraday (0.6.0) lib/faraday/adapter/net_http.rb:50:in `call'
faraday (0.6.0) lib/faraday/request/url_encoded.rb:14:in `call'
faraday (0.6.0) lib/faraday/request.rb:88:in `run'
faraday (0.6.0) lib/faraday/request.rb:28:in `run'
faraday (0.6.0) lib/faraday/connection.rb:170:in `run_request'
oauth2 (0.2.0) lib/oauth2/client.rb:51:in `request'
oauth2 (0.2.0) lib/oauth2/strategy/web_server.rb:15:in `get_access_token'
oa-oauth (0.2.1) lib/omniauth/strategies/oauth2.rb:87:in `build_access_token'
oa-oauth (0.2.1) lib/omniauth/strategies/oauth2.rb:66:in `callback_phase'
oa-oauth (0.2.1) lib/omniauth/strategies/foursquare.rb:30:in `callback_phase'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment