chore: Fix RestClient::GatewayTimeout, label_list of NilClass (#1243)
This commit is contained in:
parent
646746aa10
commit
74d07c876e
3 changed files with 11 additions and 7 deletions
|
@ -1,8 +1,8 @@
|
|||
class Webhooks::Trigger
|
||||
def self.execute(url, payload)
|
||||
RestClient.post(url, payload.to_json, { content_type: :json, accept: :json })
|
||||
rescue RestClient::NotFound => e
|
||||
Rails.logger.info "invalid url #{url} : #{e.message}"
|
||||
rescue RestClient::NotFound, RestClient::GatewayTimeout, SocketError => e
|
||||
Rails.logger.info "Exception: invalid webhook url #{url} : #{e.message}"
|
||||
rescue StandardError => e
|
||||
Raven.capture_exception(e)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue