chore: Add better error messages for Facebook unauthorized (#7936)

This commit is contained in:
Shivam Mishra
2023-09-22 16:41:04 +05:30
committed by GitHub
parent c16b801562
commit 3f0d96c24d
3 changed files with 29 additions and 5 deletions

View File

@@ -44,6 +44,7 @@ class Instagram::MessageText < Instagram::WebhooksBaseService
@inbox.channel.authorization_error!
ChatwootExceptionTracker.new(e, account: @inbox.account).capture_exception
rescue StandardError, Koala::Facebook::ClientError => e
Rails.logger.warn("[FacebookUserFetchClientError]: #{e.message}")
ChatwootExceptionTracker.new(e, account: @inbox.account).capture_exception
end