From 3eb1d495774f5e5d6f3948d4709e96284988085b Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Tue, 7 Nov 2023 12:54:49 +0530 Subject: [PATCH] fix: Handle all types of errors in API channel webhooks (#8307) --- lib/webhooks/trigger.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/webhooks/trigger.rb b/lib/webhooks/trigger.rb index 42ec29717..f2e66f997 100644 --- a/lib/webhooks/trigger.rb +++ b/lib/webhooks/trigger.rb @@ -13,7 +13,7 @@ class Webhooks::Trigger def execute perform_request - rescue RestClient::Exceptions::Timeout, RestClient::ExceptionWithResponse => e + rescue StandardError => e handle_error(e) Rails.logger.warn "Exception: Invalid webhook URL #{@url} : #{e.message}" end