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

B1G Harvest: handle 404s #5

Open
ewlarson opened this issue Mar 27, 2018 · 0 comments
Open

B1G Harvest: handle 404s #5

ewlarson opened this issue Mar 27, 2018 · 0 comments

Comments

@ewlarson
Copy link
Member

Bad local image URL results in 404. Let's not try to process that request.body with MiniMagick

[d08ea5e1-9c1d-4d3a-a451-3004f939e647] [remote_content_type] text/html; charset=iso-8859-1
[d08ea5e1-9c1d-4d3a-a451-3004f939e647] [viewer_protocol] map
[d08ea5e1-9c1d-4d3a-a451-3004f939e647] [image_url] https://archive.lib.msu.edu/maps/public/images/494c-d_ae55e6v2_th
[d08ea5e1-9c1d-4d3a-a451-3004f939e647] [gblsi_thumbnail_uri] https://archive.lib.msu.edu/maps/public/images/494c-d_ae55e6v2_th
[d08ea5e1-9c1d-4d3a-a451-3004f939e647] [service_url] 
[d08ea5e1-9c1d-4d3a-a451-3004f939e647] [image_extension] .png
[d08ea5e1-9c1d-4d3a-a451-3004f939e647] [exception] #<ActiveRecord::RecordInvalid: Validation failed: Image Failed to manipulate with MiniMagick, maybe it is not an image? Original Error: `identify /var/folders/ys/2zqn1n7n44z0j7v_8v504fm1v4byym/T/mini_magick20180327-54497-nd8stc.png` failed with error:
identify: improper image header `/var/folders/ys/2zqn1n7n44z0j7v_8v504fm1v4byym/T/mini_magick20180327-54497-nd8stc.png' @ error/png.c/ReadPNGImage/4214.
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant