gottfrois / link_thumbnailer

Ruby gem that fetches images and metadata from a given URL. Much like popular social website with link preview.
MIT License
511 stars 105 forks source link

LinkThumbnailer::HTTPError (Net::ReadTimeout with #<TCPSocket:(closed)>) #157

Open umamaheswari-raj opened 11 months ago

umamaheswari-raj commented 11 months ago

I got the issue "LinkThumbnailer::HTTPError (Net::ReadTimeout with #<TCPSocket:(closed)>)" while I fetch image or video from link. Here my code require 'link_thumbnailer' object = LinkThumbnailer.generate(link) image = object.images.try(:first).try(:src).to_s if object.images.present?