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

Undefined method in faraday 0.9.0 #53

Closed
brynbodayle opened this issue Jan 23, 2014 · 5 comments
Closed

Undefined method in faraday 0.9.0 #53

brynbodayle opened this issue Jan 23, 2014 · 5 comments

Comments

@brynbodayle
Copy link

/Users/brynbodayle/.rvm/gems/ruby-2.1.0/gems/faraday-0.9.0/lib/faraday.rb:99:in `method_missing': undefined method `register_middleware' for #<Faraday::Connection:0x00000104848b18> (NoMethodError)
    from /Users/brynbodayle/.rvm/gems/ruby-2.1.0/gems/hcl-0.4.10/lib/hcl/harvest_middleware.rb:4:in `<class:HarvestMiddleware>'
    from /Users/brynbodayle/.rvm/gems/ruby-2.1.0/gems/hcl-0.4.10/lib/hcl/harvest_middleware.rb:3:in `<top (required)>'
    from /Users/brynbodayle/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Users/brynbodayle/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Users/brynbodayle/.rvm/gems/ruby-2.1.0/gems/hcl-0.4.10/lib/hcl/net.rb:1:in `<top (required)>'
    from /Users/brynbodayle/.rvm/gems/ruby-2.1.0/gems/hcl-0.4.10/lib/hcl/app.rb:158:in `request_config'
    from /Users/brynbodayle/.rvm/gems/ruby-2.1.0/gems/hcl-0.4.10/lib/hcl/app.rb:147:in `read_config'
    from /Users/brynbodayle/.rvm/gems/ruby-2.1.0/gems/hcl-0.4.10/lib/hcl/app.rb:20:in `initialize'
    from /Users/brynbodayle/.rvm/gems/ruby-2.1.0/gems/hcl-0.4.10/lib/hcl/app.rb:27:in `new'
    from /Users/brynbodayle/.rvm/gems/ruby-2.1.0/gems/hcl-0.4.10/lib/hcl/app.rb:27:in `command'
    from /Users/brynbodayle/.rvm/gems/ruby-2.1.0/gems/hcl-0.4.10/bin/hcl:4:in `<top (required)>'
    from /Users/brynbodayle/.rvm/gems/ruby-2.1.0/bin/hcl:23:in `load'
    from /Users/brynbodayle/.rvm/gems/ruby-2.1.0/bin/hcl:23:in `<main>'
    from /Users/brynbodayle/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `eval'
    from /Users/brynbodayle/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `<main>'

I get this whenever trying to run "hcl tasks".
Any thoughts?

@zenhob
Copy link
Owner

zenhob commented Jan 25, 2014

Sorry for the delay, I think my notification settings are incorrect. I suspect you and I are using different versions of Faraday... can you tell me what version you have installed? This is probably a symptom of the fact that I don't specify detailed version requirements for HCl's dependencies. That's a silly oversight, I'll fix it and release an updated gem. In the meantime I suggest updating to the most recent version of Faraday, if you haven't. If you have, please let me know that too! Thanks.

@brynbodayle
Copy link
Author

When I experienced the issue I was running 9.0.0. Switching back to 0.8.9 fixed the issue for me.

@zenhob
Copy link
Owner

zenhob commented Jan 25, 2014

Oh! I see, pardon my tunnel vision. That's very helpful, thanks! I'll get a fix pushed ASAP.

@zenhob
Copy link
Owner

zenhob commented Jan 25, 2014

This should be fixed in 0.4.11. Thanks again for the heads up!

@zenhob zenhob closed this as completed Jan 25, 2014
@brynbodayle
Copy link
Author

Great! Thanks for the useful tool!

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