Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImageProcessing::Error exception when upload has no extension #438

Closed
danielmbrasil opened this issue Sep 28, 2021 · 0 comments · Fixed by #440
Closed

ImageProcessing::Error exception when upload has no extension #438

danielmbrasil opened this issue Sep 28, 2021 · 0 comments · Fixed by #440
Assignees
Labels
bug Something isn't working High priority This issue has high priority.

Comments

@danielmbrasil
Copy link
Collaborator

danielmbrasil commented Sep 28, 2021

ImageProcessing raises an exception when a upload has no extension, then image is not processed and is deleted from cache later. The solution for this is discussed here.
The full error message in production logs was:

{"context":"Job raised exception","job":{"retry":true,"queue":"default","class":"PromoteJob","args":["MediaUploader::Attacher","Post",3764,"media",{"id":"post/media/0e6df95029c87473a8df9e2a9400deea","storage":"cache"}],"jid":"7c9131c6b94a9fac8755c525","created_at":1632801905.1634762,"enqueued_at":1632827658.9060004,"error_message":"Source format is multi-layer, but destination format is single-layer. If you care only about the first layer, add .loader(page: 0)to your pipeline. If you want to process each layer, see https://github.com/janko/image_processing/wiki/Splitting-a-PDF-into-multiple-images or use.saver(allow_splitting: true).","error_class":"ImageProcessing::Error","failed_at":1632801907.5167108,"retry_count":10,"retried_at":1632817575.1367998},"jobstr":"{\"retry\":true,\"queue\":\"default\",\"class\":\"PromoteJob\",\"args\":[\"MediaUploader::Attacher\",\"Post\",3764,\"media\",{\"id\":\"post/media/0e6df95029c87473a8df9e2a9400deea\",\"storage\":\"cache\"}],\"jid\":\"7c9131c6b94a9fac8755c525\",\"created_at\":1632801905.1634762,\"enqueued_at\":1632827658.9060004,\"error_message\":\"Source format is multi-layer, but destination format is single-layer. If you care only about the first layer, add .loader(page: 0)to your pipeline. If you want to process each layer, see https://github.com/janko/image_processing/wiki/Splitting-a-PDF-into-multiple-images or use.saver(allow_splitting: true).\",\"error_class\":\"ImageProcessing::Error\",\"failed_at\":1632801907.5167108,\"retry_count\":10,\"retried_at\":1632817575.1367998}"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working High priority This issue has high priority.
Projects
Development

Successfully merging a pull request may close this issue.

1 participant