Skip to content

Instantly share code, notes, and snippets.

@pglombardo
Created December 9, 2015 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pglombardo/093d24097e06346429f7 to your computer and use it in GitHub Desktop.
Save pglombardo/093d24097e06346429f7 to your computer and use it in GitHub Desktop.
TraceView gem + bson v4 gem error
NoMethodError: NoMethodError: undefined method `get_int32' for #<StringIO:0x007f9e20499498>
/home/pglombardo/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/bson-4.0.0/lib/bson/hash.rb:77:in `from_bson'
/home/pglombardo/Projects/ruby-traceview/lib/oboe_metal.rb:83:in `get_all_traces'
/home/pglombardo/Projects/ruby-traceview/test/minitest_helper.rb:94:in `get_all_traces'
/home/pglombardo/Projects/ruby-traceview/test/instrumentation/delayed_job-client_test.rb:33:in `test_delay'
/home/pglombardo/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/bson-4.0.0/lib/bson/hash.rb:77:in `from_bson'
/home/pglombardo/Projects/ruby-traceview/lib/oboe_metal.rb:83:in `get_all_traces'
/home/pglombardo/Projects/ruby-traceview/test/minitest_helper.rb:94:in `get_all_traces'
/home/pglombardo/Projects/ruby-traceview/test/instrumentation/delayed_job-client_test.rb:33:in `test_delay'
@pglombardo
Copy link
Author

Adding a gemfile/gemspec version limiter such as bson ~> 3.2 is a temporary fix.

So adding gem 'bson', '~> 3.2' will fix it until we address the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment