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

uninitialized constant Capistrano::Slack::Faraday #29

Open
seanlinsley opened this issue Oct 22, 2014 · 13 comments
Open

uninitialized constant Capistrano::Slack::Faraday #29

seanlinsley opened this issue Oct 22, 2014 · 13 comments

Comments

@seanlinsley
Copy link

While upgrading our application to Rails 4 we ran into this error:

capistrano-slack-35112edc71d3/lib/capistrano/slack.rb:73:in `rescue in block (3 levels) in extended': uninitialized constant Capistrano::Slack::Faraday (NameError)
  from capistrano-slack-35112edc71d3/lib/capistrano/slack.rb:66:in `block (3 levels) in extended'
  from capistrano-2.15.5/lib/capistrano/configuration/execution.rb:138:in `instance_eval'
  from capistrano-2.15.5/lib/capistrano/configuration/execution.rb:138:in `invoke_task_directly'

Other gems in our application rely on Faraday, but capistrano-slack doesn't, so it's understandable that this error would occur since Faraday hasn't actually been loaded.

@seanlinsley
Copy link
Author

Don't know if it's the same issue, but 1.3.2 doesn't seem to post to our Slack room, while 1.3.1 does.

@j-mcnally
Copy link
Owner

thanks for the report will take a look. for now lock to 1.3.1

@jstayton
Copy link

I'm getting this error as well with v1.3.2.

@gakshay
Copy link

gakshay commented Nov 5, 2014

Getting same error

@wagnerpereira
Copy link

Can't lock to 1.3.1:
Could not find gem 'capistrano-slack (= 1.3.1) ruby' in https://github.com/j-mcnally/capistrano-slack.git (at master).
Source contains 'capistrano-slack' at: 1.3.2

@rusllonrails
Copy link

I got same problem today and this fix works for me:

 gem 'capistrano-slack', '1.3.1'

Good luck

@ant-workaholic
Copy link

I have the same problem :-(

@rusllonrails
Copy link

@ant-workaholic

gem 'capistrano-slack', '1.3.1'

and then bundle
doesn't fix it?

@ebeigarts
Copy link

The problem is here

rescue Faraday::Error::ParsingError

@lefthand
Copy link

@ant-workaholic For me it wasn't enough to pin to 1.3.1, I had to delete 1.3.2 before I could post to slack again.

@WouterSchoofs
Copy link

what capistrano version do you have?

@lefthand
Copy link

I'm running capistrano 2.15.5

@rdsoze
Copy link

rdsoze commented Aug 12, 2015

Facing the same issue with capistrano 2.15.5 and capistrano-slack 1.3.1 & 1.3.2

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