mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
fix: Handle all types of errors in API channel webhooks (#8307)
This commit is contained in:
@@ -13,7 +13,7 @@ class Webhooks::Trigger
|
|||||||
|
|
||||||
def execute
|
def execute
|
||||||
perform_request
|
perform_request
|
||||||
rescue RestClient::Exceptions::Timeout, RestClient::ExceptionWithResponse => e
|
rescue StandardError => e
|
||||||
handle_error(e)
|
handle_error(e)
|
||||||
Rails.logger.warn "Exception: Invalid webhook URL #{@url} : #{e.message}"
|
Rails.logger.warn "Exception: Invalid webhook URL #{@url} : #{e.message}"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user