Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting errors with em-http-request 0.2.10 #29

Closed
myronmarston opened this issue Jul 22, 2010 · 1 comment
Closed

Getting errors with em-http-request 0.2.10 #29

myronmarston opened this issue Jul 22, 2010 · 1 comment

Comments

@myronmarston
Copy link
Collaborator

When running my VCR specs against the latest em-http-request release (0.2.10), I get errors like these:

1)
NoMethodError in 'VCR::HttpStubbingAdapters::WebMock using em-http-request when #http_connections_allowed is set to true allows real http requests'
undefined method `[]' for nil:NilClass
/Users/mmarston/.rvm/gems/ruby-1.8.7-p299/gems/webmock-1.3.1/lib/webmock/http_lib_adapters/em_http_request.rb:76:in `build_request_signature'
/Users/mmarston/.rvm/gems/ruby-1.8.7-p299/gems/webmock-1.3.1/lib/webmock/http_lib_adapters/em_http_request.rb:31:in `send_request'
/Users/mmarston/.rvm/gems/ruby-1.8.7-p299/gems/em-http-request-0.2.10/lib/em-http/request.rb:59:in `setup_request'
/Users/mmarston/.rvm/gems/ruby-1.8.7-p299/gems/em-http-request-0.2.10/lib/em-http/request.rb:49:in `get'
./spec/http_stubbing_adapters/webmock_spec.rb:51:in `make_http_request'
/Users/mmarston/.rvm/gems/ruby-1.8.7-p299/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `call'
/Users/mmarston/.rvm/gems/ruby-1.8.7-p299/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
/Users/mmarston/.rvm/gems/ruby-1.8.7-p299/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
./spec/http_stubbing_adapters/webmock_spec.rb:49:in `make_http_request'
/Users/mmarston/code/vcr/spec/support/http_stubbing_adapter.rb:82:in `test_real_http_request'

When I run my specs against em-http-request 0.2.7, they pass. Looking at the stack trace, you can see the problem is here--you're referencing @options, but apparently it's nil.

@bblimke
Copy link
Owner

bblimke commented Jul 23, 2010

Thanks for the info. It's now fixed in master and works with 0.2.10 as well as 0.2.7

Bartosz

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants