retry webhooks on faraday error

pull/220/head^2
Pete Matsyburka 2 years ago
parent 1c701d4fe8
commit fb6ede564e

@ -24,7 +24,7 @@ class SendFormCompletedWebhookRequestJob < ApplicationJob
}.to_json,
'Content-Type' => 'application/json',
'User-Agent' => USER_AGENT)
rescue Faraday::TimeoutError
rescue Faraday::Error
nil
end

@ -22,7 +22,7 @@ class SendFormStartedWebhookRequestJob < ApplicationJob
}.to_json,
'Content-Type' => 'application/json',
'User-Agent' => USER_AGENT)
rescue Faraday::TimeoutError
rescue Faraday::Error
nil
end

@ -22,7 +22,7 @@ class SendFormViewedWebhookRequestJob < ApplicationJob
}.to_json,
'Content-Type' => 'application/json',
'User-Agent' => USER_AGENT)
rescue Faraday::TimeoutError
rescue Faraday::Error
nil
end

Loading…
Cancel
Save