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

OpenURI::HTTPError for broken image link #84

Open
sserghei opened this issue Aug 20, 2020 · 0 comments
Open

OpenURI::HTTPError for broken image link #84

sserghei opened this issue Aug 20, 2020 · 0 comments

Comments

@sserghei
Copy link

If you have image with bad url - it fails with
OpenURI::HTTPError (502 Bad Gateway):

For me solution is to wrap in begin-rescue block method generate
this part of code:

begin
  open(hash[:url], 'rb') do |f|
    out.write(f.read)
  end
rescue
end

file path:lib/htmltoword/document.rb

Could we add it somehow into main branch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant