pulibrary / lib_jobs

Enterprise Services batch processing tasks. Rails 7 Ruby 3.1.0
4 stars 0 forks source link

File ArgumentError in process_data_sync_exceptions rake task #643

Closed sandbergja closed 5 months ago

sandbergja commented 1 year ago

Expected behavior

The lib_jobs:process_data_sync_exceptions rake task runs without issues.

Actual behavior

It threw an error "ArgumentError: expected a file to upload". Perhaps a file was missing from disk?

Steps to replicate

Not sure

Impact of this bug

Not sure

Honeybadger link and code snippet, if applicable

https://app.honeybadger.io/projects/100710/faults/100657786

source_file_path = File.join(working_file_directory, working_file_name)
          destination_file_path = File.join(output_sftp_base_dir, working_file_name)
          sftp.upload!(source_file_path, destination_file_path)
          uploaded_file_paths << destination_file_path
          Rails.logger.debug { "Uploaded source file: #{source_file_path} to sftp path: #{destination_file_path}" }

Implementation notes, if any

christinach commented 10 months ago

Same error happened on January 3rd, 2024.

christinach commented 7 months ago
urred   Hostname    Message
[3/20/2024 at 8:00 AM -04:00](https://app.honeybadger.io/projects/100710/faults/100657786/01HSDVQ98F01KVHCY4AEJVDZYQ?page=0)    lib-jobs-prod2  
ArgumentError: expected a file to upload
[2/21/2024 at 7:00 AM -05:00](https://app.honeybadger.io/projects/100710/faults/100657786/01HQ5RK56S2HPAC5WBA490PEDS?page=0)    lib-jobs-prod2  
ArgumentError: expected a file to upload
[1/3/2024 at 7:00 AM -05:00](https://app.honeybadger.io/projects/100710/faults/100657786/01HK7K3XSMQ2504SQQ74SCRB19?page=0)     lib-jobs-prod2  
ArgumentError: expected a file to upload
[12/20/2023 at 7:00 AM -05:00](https://app.honeybadger.io/projects/100710/faults/100657786/01HJ3HHXWD8EK4XNG33TBA01B2?page=0)   lib-jobs-prod2  
ArgumentError: expected a file to upload
maxkadel commented 5 months ago

This is blocking processing the exceptions correctly.