From 0b8d3cb93bc3117d8605cf147c00be7c86250f0d Mon Sep 17 00:00:00 2001 From: Jennica Stiehl <25069483+stiehlrod@users.noreply.github.com> Date: Fri, 26 Apr 2024 11:31:54 -0600 Subject: [PATCH] REmoves error message, and uses evss_response on the claim instead. --- .../v2/disability_compensation_docker_container_upload.rb | 6 ++---- .../claims_api/v2/disability_compensation_pdf_generator.rb | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/modules/claims_api/app/sidekiq/claims_api/v2/disability_compensation_docker_container_upload.rb b/modules/claims_api/app/sidekiq/claims_api/v2/disability_compensation_docker_container_upload.rb index 7d5aed5b02f..a276cf7774a 100644 --- a/modules/claims_api/app/sidekiq/claims_api/v2/disability_compensation_docker_container_upload.rb +++ b/modules/claims_api/app/sidekiq/claims_api/v2/disability_compensation_docker_container_upload.rb @@ -37,18 +37,16 @@ def perform(claim_id) # rubocop:disable Metrics/MethodLength rescue Faraday::ParsingError, Faraday::TimeoutError => e set_evss_response(auto_claim, e) error_status = get_error_status_code(e) - error_message = auto_claim.evss_response&.dig(0, 'text') log_job_progress(claim_id, - "Docker container job errored #{e.class}: #{error_status} #{error_message}") + "Docker container job errored #{e.class}: #{error_status} #{auto_claim&.evss_response}") log_exception_to_sentry(e) raise e rescue ::Common::Exceptions::BackendServiceException => e set_evss_response(auto_claim, e) - error_message = auto_claim.evss_response&.dig(0, 'text') log_job_progress(claim_id, - "Docker container job errored #{e.class}: #{error_message}") + "Docker container job errored #{e.class}: #{auto_claim&.evss_response}") log_exception_to_sentry(e) # if will_retry? if will_retry?(auto_claim, e) diff --git a/modules/claims_api/app/sidekiq/claims_api/v2/disability_compensation_pdf_generator.rb b/modules/claims_api/app/sidekiq/claims_api/v2/disability_compensation_pdf_generator.rb index 473485df683..701728062c8 100644 --- a/modules/claims_api/app/sidekiq/claims_api/v2/disability_compensation_pdf_generator.rb +++ b/modules/claims_api/app/sidekiq/claims_api/v2/disability_compensation_pdf_generator.rb @@ -53,22 +53,20 @@ def perform(claim_id, middle_initial) # rubocop:disable Metrics/MethodLength start_docker_container_job(auto_claim&.id) if auto_claim.status != errored_state_value rescue Faraday::ParsingError, Faraday::TimeoutError => e - error_message = auto_claim.evss_response&.dig(0, 'text') if auto_claim.evss_response.present? set_evss_response(auto_claim, e) error_status = get_error_status_code(e) log_job_progress(claim_id, - "526EZ PDF generator faraday error #{e.class}: #{error_status} #{error_message}") + "526EZ PDF generator faraday error #{e.class}: #{error_status} #{auto_claim&.evss_response}") log_exception_to_sentry(e) raise e rescue ::Common::Exceptions::BackendServiceException => e - error_message = auto_claim.evss_response&.dig(0, 'text') if auto_claim.evss_response.present? set_evss_response(auto_claim, e) error_status = get_error_status_code(e) log_job_progress(claim_id, - "526EZ PDF generator errored #{e.class}: #{error_status} #{error_message}") + "526EZ PDF generator errored #{e.class}: #{error_status} #{auto_claim&.evss_response}") log_exception_to_sentry(e) raise e