mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-29 18:22:53 +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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user