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

Already on GitHub? Sign in to your account

undefined method `map' for #<String:> in VCR #262

Closed
phillyslick opened this Issue Mar 12, 2013 · 7 comments

Comments

Projects
None yet
4 participants

When POSTing a file through Capybara, at least through the 'Soundcloud' gem, raises:

undefined method `map' for #String:0x007fa8e9d8de68

changing VCR's hook_into: to fakeweb corrects the error.

Sorry if this should be on VCR's repo instead.

Owner

bblimke commented Mar 12, 2013

Can you please send the full stacktrace?

What version of WebMock and VCR do you use?

Tried using WebMock 1.9.0, 1.10.0 and the current version. VCR 2.4.0

/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/httmultiparty-0.3.8/lib/httmultiparty/multipartable.rb:10:in body=' /Users/hackitupben/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/http/generic_request.rb:109:inset_body_internal'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/webmock-1.9.0/lib/webmock/http_lib_adapters/net_http.rb:263:in request_signature_from_request' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/webmock-1.9.0/lib/webmock/http_lib_adapters/net_http.rb:75:inrequest'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/httparty-0.10.2/lib/httparty/request.rb:91:in perform' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/httparty-0.10.2/lib/httparty.rb:456:inperform_request'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/httmultiparty-0.3.8/lib/httmultiparty.rb:81:in post' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/soundcloud-0.3.1/lib/soundcloud.rb:105:inblock in post'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/soundcloud-0.3.1/lib/soundcloud.rb:168:in call' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/soundcloud-0.3.1/lib/soundcloud.rb:168:inhandle_response'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/soundcloud-0.3.1/lib/soundcloud.rb:105:in post' /Users/hackitupben/Web/sampleIt/app/controllers/content_provider/soundcloud_controller.rb:23:inupload'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/actionpack-3.2.12/lib/action_controller/metal/implicit_render.rb:4:in send_action' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/actionpack-3.2.12/lib/abstract_controller/base.rb:167:inprocess_action'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/actionpack-3.2.12/lib/action_controller/metal/rendering.rb:10:in process_action' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/actionpack-3.2.12/lib/abstract_controller/callbacks.rb:18:inblock in process_action'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:436:in _run__2126966496682626639__process_action__1205398214842203022__callbacks' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:405:in__run_callback'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:385:in _run_process_action_callbacks' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:81:inrun_callbacks'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/actionpack-3.2.12/lib/abstract_controller/callbacks.rb:17:in process_action' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/actionpack-3.2.12/lib/action_controller/metal/rescue.rb:29:inprocess_action'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/actionpack-3.2.12/lib/action_controller/metal/instrumentation.rb:30:in block in process_action' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/activesupport-3.2.12/lib/active_support/notifications.rb:123:inblock in instrument'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/activesupport-3.2.12/lib/active_support/notifications/instrumenter.rb:20:in instrument' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/activesupport-3.2.12/lib/active_support/notifications.rb:123:ininstrument'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/actionpack-3.2.12/lib/action_controller/metal/instrumentation.rb:29:in process_action' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/actionpack-3.2.12/lib/action_controller/metal/params_wrapper.rb:207:inprocess_action'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/activerecord-3.2.12/lib/active_record/railties/controller_runtime.rb:18:in process_action' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/actionpack-3.2.12/lib/abstract_controller/base.rb:121:inprocess'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/actionpack-3.2.12/lib/abstract_controller/rendering.rb:45:in process' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/actionpack-3.2.12/lib/action_controller/metal.rb:203:indispatch'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/actionpack-3.2.12/lib/action_controller/metal/rack_delegation.rb:14:in dispatch' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/actionpack-3.2.12/lib/action_controller/metal.rb:246:inblock in action'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/actionpack-3.2.12/lib/action_dispatch/routing/route_set.rb:73:in call' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/actionpack-3.2.12/lib/action_dispatch/routing/route_set.rb:73:indispatch'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/actionpack-3.2.12/lib/action_dispatch/routing/route_set.rb:36:in call' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/journey-1.0.4/lib/journey/router.rb:68:inblock in call'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/journey-1.0.4/lib/journey/router.rb:56:in each' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/journey-1.0.4/lib/journey/router.rb:56:incall'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/actionpack-3.2.12/lib/action_dispatch/routing/route_set.rb:601:in call' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/warden-1.2.1/lib/warden/manager.rb:35:inblock in call'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/warden-1.2.1/lib/warden/manager.rb:34:in catch' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/warden-1.2.1/lib/warden/manager.rb:34:incall'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/actionpack-3.2.12/lib/action_dispatch/middleware/best_standards_support.rb:17:in call' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rack-1.4.5/lib/rack/etag.rb:23:incall'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rack-1.4.5/lib/rack/conditionalget.rb:35:in call' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/actionpack-3.2.12/lib/action_dispatch/middleware/head.rb:14:incall'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/actionpack-3.2.12/lib/action_dispatch/middleware/params_parser.rb:21:in call' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/actionpack-3.2.12/lib/action_dispatch/middleware/flash.rb:242:incall'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:in context' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:incall'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/actionpack-3.2.12/lib/action_dispatch/middleware/cookies.rb:341:in call' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/activerecord-3.2.12/lib/active_record/query_cache.rb:64:incall'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in call' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/actionpack-3.2.12/lib/action_dispatch/middleware/callbacks.rb:28:inblock in call'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:405:in _run__1991622907727957440__call__2030598854048046796__callbacks' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:405:in__run_callback'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:385:in _run_call_callbacks' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:81:inrun_callbacks'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/actionpack-3.2.12/lib/action_dispatch/middleware/callbacks.rb:27:in call' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/actionpack-3.2.12/lib/action_dispatch/middleware/remote_ip.rb:31:incall'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/actionpack-3.2.12/lib/action_dispatch/middleware/debug_exceptions.rb:16:in call' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/actionpack-3.2.12/lib/action_dispatch/middleware/show_exceptions.rb:56:incall'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/railties-3.2.12/lib/rails/rack/logger.rb:32:in call_app' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/railties-3.2.12/lib/rails/rack/logger.rb:16:inblock in call'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/activesupport-3.2.12/lib/active_support/tagged_logging.rb:22:in tagged' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/railties-3.2.12/lib/rails/rack/logger.rb:16:incall'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/actionpack-3.2.12/lib/action_dispatch/middleware/request_id.rb:22:in call' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:incall'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rack-1.4.5/lib/rack/runtime.rb:17:in call' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/activesupport-3.2.12/lib/active_support/cache/strategy/local_cache.rb:72:incall'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rack-1.4.5/lib/rack/lock.rb:15:in call' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/actionpack-3.2.12/lib/action_dispatch/middleware/static.rb:62:incall'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/railties-3.2.12/lib/rails/engine.rb:479:in call' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/railties-3.2.12/lib/rails/application.rb:223:incall'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rack-1.4.5/lib/rack/builder.rb:134:in call' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rack-1.4.5/lib/rack/urlmap.rb:64:inblock in call'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in each' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rack-1.4.5/lib/rack/urlmap.rb:49:incall'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rack-test-0.6.2/lib/rack/mock_session.rb:30:in request' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rack-test-0.6.2/lib/rack/test.rb:230:inprocess_request'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rack-test-0.6.2/lib/rack/test.rb:66:in post' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/capybara-2.0.2/lib/capybara/rack_test/browser.rb:59:inprocess'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/capybara-2.0.2/lib/capybara/rack_test/browser.rb:35:in process_and_follow_redirects' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/capybara-2.0.2/lib/capybara/rack_test/browser.rb:26:insubmit'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/capybara-2.0.2/lib/capybara/rack_test/form.rb:64:in submit' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/capybara-2.0.2/lib/capybara/rack_test/node.rb:72:inclick'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/capybara-2.0.2/lib/capybara/node/element.rb:103:in block in click' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/capybara-2.0.2/lib/capybara/node/base.rb:78:insynchronize'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/capybara-2.0.2/lib/capybara/node/element.rb:103:in click' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/capybara-2.0.2/lib/capybara/node/actions.rb:35:inclick_button'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/capybara-2.0.2/lib/capybara/session.rb:341:in block (2 levels) in <class:Session>' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/capybara-2.0.2/lib/capybara/dsl.rb:51:inblock (2 levels) in module:DSL'
/Users/hackitupben/Web/sampleIt/spec/features/soundcloud_spec.rb:140:in block (5 levels) in <top (required)>' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/capybara-2.0.2/lib/capybara/session.rb:214:inwithin'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/capybara-2.0.2/lib/capybara/dsl.rb:51:in block (2 levels) in <module:DSL>' /Users/hackitupben/Web/sampleIt/spec/features/soundcloud_spec.rb:136:inblock (4 levels) in <top (required)>'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rspec-core-2.13.0/lib/rspec/core/example.rb:114:in instance_eval' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rspec-core-2.13.0/lib/rspec/core/example.rb:114:inblock in run'
/Users/hackitupben/Web/sampleIt/spec/spec_helper.rb:61:in call' /Users/hackitupben/Web/sampleIt/spec/spec_helper.rb:61:inblock (3 levels) in <top (required)>'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/vcr-2.4.0/lib/vcr/util/variable_args_block_caller.rb:9:in call' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/vcr-2.4.0/lib/vcr/util/variable_args_block_caller.rb:9:incall_block'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/vcr-2.4.0/lib/vcr.rb:173:in use_cassette' /Users/hackitupben/Web/sampleIt/spec/spec_helper.rb:61:inblock (2 levels) in <top (required)>'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rspec-core-2.13.0/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in instance_exec' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rspec-core-2.13.0/lib/rspec/core/extensions/instance_eval_with_args.rb:16:ininstance_eval_with_args'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rspec-core-2.13.0/lib/rspec/core/example.rb:247:in instance_eval_with_args' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rspec-core-2.13.0/lib/rspec/core/hooks.rb:93:inblock (2 levels) in run'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rspec-core-2.13.0/lib/rspec/core/hooks.rb:95:in call' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rspec-core-2.13.0/lib/rspec/core/hooks.rb:95:inrun'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rspec-core-2.13.0/lib/rspec/core/hooks.rb:424:in run_hook' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rspec-core-2.13.0/lib/rspec/core/example_group.rb:325:inrun_around_each_hooks'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rspec-core-2.13.0/lib/rspec/core/example.rb:256:in with_around_each_hooks' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rspec-core-2.13.0/lib/rspec/core/example.rb:111:inrun'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rspec-core-2.13.0/lib/rspec/core/example_group.rb:386:in block in run_examples' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rspec-core-2.13.0/lib/rspec/core/example_group.rb:382:inmap'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rspec-core-2.13.0/lib/rspec/core/example_group.rb:382:in run_examples' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rspec-core-2.13.0/lib/rspec/core/example_group.rb:367:inrun'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rspec-core-2.13.0/lib/rspec/core/example_group.rb:368:in block in run' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rspec-core-2.13.0/lib/rspec/core/example_group.rb:368:inmap'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rspec-core-2.13.0/lib/rspec/core/example_group.rb:368:in run' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rspec-core-2.13.0/lib/rspec/core/example_group.rb:368:inblock in run'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rspec-core-2.13.0/lib/rspec/core/example_group.rb:368:in map' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rspec-core-2.13.0/lib/rspec/core/example_group.rb:368:inrun'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rspec-core-2.13.0/lib/rspec/core/command_line.rb:28:in block (2 levels) in run' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rspec-core-2.13.0/lib/rspec/core/command_line.rb:28:inmap'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rspec-core-2.13.0/lib/rspec/core/command_line.rb:28:in block in run' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rspec-core-2.13.0/lib/rspec/core/reporter.rb:34:inreport'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rspec-core-2.13.0/lib/rspec/core/command_line.rb:25:in run' /Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rspec-core-2.13.0/lib/rspec/core/runner.rb:80:inrun'
/Users/hackitupben/.rvm/gems/ruby-2.0.0-p0@sampling/gems/rspec-core-2.13.0/lib/rspec/core/runner.rb:17:in `block in autorun'

Owner

bblimke commented Mar 12, 2013

No idea. I will need a sample code that generates this error to investigate that further.
Could you please check if problem exists on Ruby 1.9?

For sure. I'll let you know later on today.

did commented Mar 25, 2013

@phillyslick a dirty monkey patch here for what it's worth: https://gist.github.com/did/5234265.

Owner

bblimke commented Nov 2, 2014

@phillyslick is that still an issue? I don't have a failing code to reproduce.

Collaborator

davidbegin commented Sep 2, 2015

Thank you for submitting, however I am closing this because of the time elapsed. If it still an issue, please feel free to open a new issue.

@davidbegin davidbegin closed this Sep 2, 2015

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