E, [2017-10-09T03:41:36.467269 #22391] ERROR -- : Unable to post webhook: https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX: #<UserAgent::Result:0x839650f4 @success=false, @body=nil, @data=nil, @code=0, @content_type=nil, @error="#<Net::OpenTimeout: execution expired>">
Posting the same request generated by Zammad (Integration > Slack > Recent logs > HTTP log) via bash using curl -X POST
works perfectly fine.
Googling for similar/related Rails errors brought up only a suggestion to disable IPv6 on the machine, but that didn't solve the issue.
Has anybody else encountered this "_Net::OpenTimeout: execution expired_" error?
Thanks
Hi @em-ex , Thanks for your report. Did you try to run curl at the same server as zammad which you say it works fine?
I just tested hooking up to slack from my development machine and it works ok for zammad 2.0.0
@muhammadn Thanks for looking into this!
Yes, curl post was tested from the same server and it worked:
The problem is supposedly with how Rails handles DNS, but I'm not an expert...
Ok so I went to examine the code and in app\models\transaction\slack.rb
I found that open_timeout
was set to 4. Out of ~despair~ curiosity I changed it to 20 and the Slack notification went through.
I should've mentioned that the server is running on pretty old hardware... I think it's ok to close the issue now.
Once again, @muhammadn thanks for taking time to look into this!