Skip to content

Instantly share code, notes, and snippets.

@superCap3
Created January 10, 2014 20:05
Show Gist options
  • Save superCap3/8361609 to your computer and use it in GitHub Desktop.
Save superCap3/8361609 to your computer and use it in GitHub Desktop.
"campaign has this value: #<Typhoeus::Response:0x007fbc52b69bd8>"
43446
TypeError - wrong argument type JSON::Pure::Generator::State (expected Data):
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/json_pure-1.8.1/lib/json/pure/generator.rb:366:in `to_json'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/json_pure-1.8.1/lib/json/pure/generator.rb:366:in `block in json_transform'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/json_pure-1.8.1/lib/json/pure/generator.rb:359:in `each'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/json_pure-1.8.1/lib/json/pure/generator.rb:359:in `json_transform'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/json_pure-1.8.1/lib/json/pure/generator.rb:341:in `to_json'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/json_pure-1.8.1/lib/json/pure/generator.rb:293:in `generate'
/Users/adrian/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/json/common.rb:224:in `generate'
/Users/adrian/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/json/common.rb:395:in `dump'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/faraday_middleware-0.9.0/lib/faraday_middleware/request/encode_json.rb:27:in `encode'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/faraday_middleware-0.9.0/lib/faraday_middleware/request/encode_json.rb:21:in `block in call'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/faraday_middleware-0.9.0/lib/faraday_middleware/request/encode_json.rb:33:in `match_content_type'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/faraday_middleware-0.9.0/lib/faraday_middleware/request/encode_json.rb:20:in `call'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/restforce-1.4.2/lib/restforce/middleware/multipart.rb:13:in `call'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/restforce-1.4.2/lib/restforce/middleware/mashify.rb:8:in `call'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/faraday-0.8.8/lib/faraday/connection.rb:253:in `run_request'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/faraday-0.8.8/lib/faraday/connection.rb:118:in `patch'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/restforce-1.4.2/lib/restforce/concerns/verbs.rb:36:in `block in define_verb'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/restforce-1.4.2/lib/restforce/concerns/verbs.rb:62:in `block in define_api_verb'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/restforce-1.4.2/lib/restforce/concerns/api.rb:212:in `update!'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/restforce-1.4.2/lib/restforce/concerns/api.rb:192:in `update'
app.rb:48:in `block in <main>'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/base.rb:1593:in `call'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/base.rb:1593:in `block in compile!'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/base.rb:957:in `[]'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/base.rb:957:in `block (3 levels) in route!'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/base.rb:976:in `route_eval'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/base.rb:957:in `block (2 levels) in route!'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/base.rb:997:in `block in process_route'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/base.rb:995:in `catch'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/base.rb:995:in `process_route'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/base.rb:955:in `block in route!'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/base.rb:954:in `each'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/base.rb:954:in `route!'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/base.rb:1067:in `block in dispatch!'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `block in invoke'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `catch'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `invoke'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/base.rb:1064:in `dispatch!'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/base.rb:889:in `block in call!'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `block in invoke'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `catch'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `invoke'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/base.rb:889:in `call!'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/base.rb:877:in `call'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/rack-protection-1.5.1/lib/rack/protection/xss_header.rb:18:in `call'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/rack-protection-1.5.1/lib/rack/protection/path_traversal.rb:16:in `call'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/rack-protection-1.5.1/lib/rack/protection/json_csrf.rb:18:in `call'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/rack-protection-1.5.1/lib/rack/protection/base.rb:50:in `call'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/rack-protection-1.5.1/lib/rack/protection/base.rb:50:in `call'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/rack-protection-1.5.1/lib/rack/protection/frame_options.rb:31:in `call'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/rack-1.5.2/lib/rack/logger.rb:15:in `call'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/rack-1.5.2/lib/rack/commonlogger.rb:33:in `call'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/base.rb:217:in `call'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/base.rb:210:in `call'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/show_exceptions.rb:21:in `call'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/base.rb:180:in `call'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/base.rb:2004:in `call'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/base.rb:1469:in `block in call'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/base.rb:1778:in `synchronize'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/sinatra-1.4.4/lib/sinatra/base.rb:1469:in `call'
/Users/adrian/.rvm/gems/ruby-2.0.0-p353/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
/Users/adrian/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/adrian/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/adrian/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
localhost - - [10/Jan/2014:22:04:37 EET] "GET /opportunity/0065000000NsLYY HTTP/1.1" 500 185565
- -> /opportunity/0065000000NsLYY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment