Skip to content


Errors with Typhoeus 0.6 #252

iangreenleaf opened this Issue · 7 comments

3 participants


Typhoeus 0.6.1 fails to make requests when webmock is loaded, raising an error instead:

NoMethodError: undefined method `to_sym' for nil:NilClass
    from gems/1.8/gems/webmock-1.9.0/lib/webmock/request_stub.rb:80:in `from_request_signature'
    from gems/1.8/gems/webmock-1.9.0/lib/webmock/errors.rb:26:in `stubbing_instructions'
    from gems/1.8/gems/webmock-1.9.0/lib/webmock/errors.rb:7:in `initialize'
    from gems/1.8/gems/webmock-1.9.0/lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb:150:in `new'
    from gems/1.8/gems/webmock-1.9.0/lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb:150
    from gems/1.8/gems/typhoeus-0.6.1/lib/typhoeus/request/before.rb:21:in `call'
    from gems/1.8/gems/typhoeus-0.6.1/lib/typhoeus/request/before.rb:21:in `run'
    from gems/1.8/gems/typhoeus-0.6.1/lib/typhoeus/request/before.rb:20:in `each'
    from gems/1.8/gems/typhoeus-0.6.1/lib/typhoeus/request/before.rb:20:in `run'
    from (irb):13

Possibly related to #239, but it seems like the code in question here is different.

/cc @i0rek


Thanks for reporting! Can you provide a simple example b/c the tests are passing.


Yep, (from memory) it should be enough to do this in irb:

require 'typhoeus'
require 'webmock''').run

ouch! Will look into it!


I included a fix in my existing PR: #253.


@bblimke @iangreenleaf I referenced the wrong issue from my PR. This issue should be fixed.


Just released 1.9.1 with the pull request included.


@bblimke Thank you very much!

@bblimke bblimke closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.