diff --git a/app/jobs/e621_thumbnail_job.rb b/app/jobs/e621_thumbnail_job.rb index f06027f..b9ecada 100644 --- a/app/jobs/e621_thumbnail_job.rb +++ b/app/jobs/e621_thumbnail_job.rb @@ -32,7 +32,7 @@ class E621ThumbnailJob < ApplicationJob rescue StandardError => e code = Requests::Pastebin.default.create(title: "E621 Thumbnail Generation Error (#{entry.stripped_md5})", content: "#{e}\n#{e.backtrace&.join("\n") || ''}") entry.update!(status: "error", error_code: code) - execute_webhook(entry, title: "Thumbnail Generation Errored (#{entry.filetype})", body: "Backtrace: https://passtebin.com/#{code}", error: true) + execute_webhook(entry, title: "Thumbnail Generation Errored (#{entry.filetype})", body: "Backtrace: https://pastebin.com/#{code}", error: true) raise(e) ensure [infile, outfile, palettefile, cutfile].each do |file| diff --git a/app/logical/file_download.rb b/app/logical/file_download.rb index d153433..427823f 100644 --- a/app/logical/file_download.rb +++ b/app/logical/file_download.rb @@ -5,7 +5,7 @@ class FileDownload class Error < StandardError; end RETRIABLE_ERRORS = [Errno::ECONNRESET, Errno::ETIMEDOUT, Errno::EIO, Errno::EHOSTUNREACH, Errno::ECONNREFUSED, Timeout::Error, IOError].freeze - MAX_SIZE = 50.megabytes + MAX_SIZE = 100.megabytes attr_reader :url