Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Errors with Typhoeus 0.6 #252

Closed
iangreenleaf opened this Issue · 7 comments

3 participants

@iangreenleaf

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

@i0rek

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

@iangreenleaf

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

require 'typhoeus'
require 'webmock'
Typhoeus::Request.new('http://www.google.com').run
@i0rek

ouch! Will look into it!

@i0rek

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

@i0rek

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

@bblimke
Owner

Just released 1.9.1 with the pull request included.

@i0rek

@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.