retry webhooks on faraday error

This commit is contained in:
Pete Matsyburka
2024-03-01 18:51:11 +02:00
parent 1c701d4fe8
commit fb6ede564e
3 changed files with 3 additions and 3 deletions
@@ -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