You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
task :start_notify_slack, :roles => :app do
::SlackNotify::Client.new(slack_subdomain, slack_token, {
channel: slack_channel,
username: slack_username,
icon_emoji: slack_emoji
}).notify("#{slack_local_user} started deploying #{slack_application}'s #{branch} to #{fetch(:stage, 'production')}")
end
I realized after reviewing the file slack-notify/lib/slack-notify/connection.rb in the gem that there were static time out value assignment in payload method :
def send_payload(payload)
conn = Faraday.new(@webhook_url) do |c|
c.use(Faraday::Request::UrlEncoded)
c.adapter(Faraday.default_adapter)
** c.options.timeout = 5
c.options.open_timeout = 5 **
end
For resolving the issue for now I have made changes to my gem locally. But I think it should not be a static value there should be an optional parameter option for assigning timeout values. I hope it explains the issue. Feel free to reach me in case you want more details
The text was updated successfully, but these errors were encountered:
For one of my project I was facing an error during cap deployment.
My code block in deploy.rb
I realized after reviewing the file slack-notify/lib/slack-notify/connection.rb in the gem that there were static time out value assignment in payload method :
For resolving the issue for now I have made changes to my gem locally. But I think it should not be a static value there should be an optional parameter option for assigning timeout values. I hope it explains the issue. Feel free to reach me in case you want more details
The text was updated successfully, but these errors were encountered: