Skip to content

Instantly share code, notes, and snippets.

@jclay
Last active September 1, 2015 22:52
Show Gist options
  • Save jclay/5da2774903327d6c6049 to your computer and use it in GitHub Desktop.
Save jclay/5da2774903327d6c6049 to your computer and use it in GitHub Desktop.
checkr - stack level too deep
source "https://rubygems.org"
gem 'activesupport', '4.2.3'
gem 'checkr-official', '1.0.2'
GEM
remote: https://rubygems.org/
specs:
activesupport (4.2.3)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
checkr-official (1.0.2)
json (~> 1.8.1)
mime-types (>= 1.25, < 3.0)
rest-client (~> 1.4)
domain_name (0.5.24)
unf (>= 0.0.5, < 1.0.0)
http-cookie (1.0.2)
domain_name (~> 0.5)
i18n (0.7.0)
json (1.8.3)
mime-types (2.6.1)
minitest (5.8.0)
netrc (0.10.3)
rest-client (1.8.0)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 3.0)
netrc (~> 0.7)
thread_safe (0.3.5)
tzinfo (1.2.2)
thread_safe (~> 0.1)
unf (0.1.4)
unf_ext
unf_ext (0.0.7.1)
PLATFORMS
ruby
DEPENDENCIES
activesupport (= 4.2.3)
checkr-official (= 1.0.2)
BUNDLED WITH
1.10.5
## Make sure to run bundle install
## then run test.rb with bundle exec
➜ checkr-test-case bundle exec ruby test.rb
/Users/jclay/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.3/lib/active_support/core_ext/object/json.rb:32:in `to_json_with_active_support_encoder': stack level too deep (SystemStackError)
from /Users/jclay/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.3/lib/active_support/core_ext/object/json.rb:34:in `to_json_with_active_support_encoder'
from /Users/jclay/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.3/lib/active_support/core_ext/object/json.rb:34:in `to_json_with_active_support_encoder'
from /Users/jclay/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.3/lib/active_support/core_ext/object/json.rb:34:in `to_json_with_active_support_encoder'
from /Users/jclay/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.3/lib/active_support/core_ext/object/json.rb:34:in `to_json_with_active_support_encoder'
from /Users/jclay/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.3/lib/active_support/core_ext/object/json.rb:34:in `to_json_with_active_support_encoder'
from /Users/jclay/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.3/lib/active_support/core_ext/object/json.rb:34:in `to_json_with_active_support_encoder'
from /Users/jclay/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.3/lib/active_support/core_ext/object/json.rb:34:in `to_json_with_active_support_encoder'
from /Users/jclay/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.3/lib/active_support/core_ext/object/json.rb:34:in `to_json_with_active_support_encoder'
... 9347 levels...
from /Users/jclay/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/checkr-official-1.0.2/lib/checkr/api_class.rb:164:in `to_s'
from test.rb:11:in `puts'
from test.rb:11:in `puts'
from test.rb:11:in `<main>'
➜ checkr-test-case
require 'active_support/core_ext/object'
require 'checkr'
Checkr.api_key = 'your_key'
report = Checkr::Report.create({
package: "tasker_pro",
candidate_id: "b28ac43920df4c9c5997a06d"
})
puts report
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment