From 164f4ec90ebd2f86b1bb6521cc22a8f7f5a0d0b9 Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Tue, 6 May 2025 15:49:43 +0530 Subject: [PATCH] fix: Undefined local variable or method `error` for an instance of Instagram MessageText (#11421) Fixes https://chatwoot-p3.sentry.io/issues/6557025930?project=6382945 --- app/services/instagram/message_text.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/instagram/message_text.rb b/app/services/instagram/message_text.rb index c3978f2ee..66445f5a5 100644 --- a/app/services/instagram/message_text.rb +++ b/app/services/instagram/message_text.rb @@ -44,7 +44,7 @@ class Instagram::MessageText < Instagram::BaseMessageText Rails.logger.warn("[InstagramUserFetchError]: account_id #{@inbox.account_id} inbox_id #{@inbox.id}") Rails.logger.warn("[InstagramUserFetchError]: #{error_message} #{error_code}") - ChatwootExceptionTracker.new(error, account: @inbox.account).capture_exception + ChatwootExceptionTracker.new(parsed_response, account: @inbox.account).capture_exception end def base_uri