unsplash_image
unsplash_image copied to clipboard
OpenURI::HTTPError: 404 Not Found
When using UnsplashImage.tempfile(size: '1920x1080', tags: "product") Receive Error OpenURI::HTTPError: 404 Not Found
Issue: UnsplashImage::Helper.unsplash_image_url(size: size, tags: tags) generates url: https://source.unsplash.com/random
which if you visit reports a 404, I suspect this has been moved by unsplash.com
Backtrace:
"/usr/share/rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/open-uri.rb:369:in open_http'", "/usr/share/rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/open-uri.rb:760:in
buffer_open'",
"/usr/share/rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/open-uri.rb:214:in block in open_loop'", "/usr/share/rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/open-uri.rb:212:in
catch'",
"/usr/share/rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/open-uri.rb:212:in open_loop'", "/usr/share/rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/open-uri.rb:153:in
open_uri'",
"/usr/share/rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/open-uri.rb:740:in open'", "/usr/share/rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/open-uri.rb:748:in
read'",
"/usr/share/rvm/gems/ruby-3.2.2/gems/unsplash_image-0.1.1/lib/unsplash_image/download.rb:9:in tempfile'", "/home/workstation/Development/Scratchpad/react_ecommerce_rncom/backend/db/seeds.rb:92:in
block (3 levels) in times'", "/home/workstation/Development/Scratchpad/react_ecommerce_rncom/backend/db/seeds.rb:90:in
block (2 levels) in run'", "/usr/share/rvm/gems/ruby-3.2.2/gems/workers-0.6.1/lib/workers/task_group.rb:42:in
block (3 levels) in run'",
"/usr/share/rvm/gems/ruby-3.2.2/gems/workers-0.6.1/lib/workers/worker.rb:101:in perform_handler'", "/usr/share/rvm/gems/ruby-3.2.2/gems/workers-0.6.1/lib/workers/worker.rb:86:in
event_handler'",
"/usr/share/rvm/gems/ruby-3.2.2/gems/workers-0.6.1/lib/workers/worker.rb:73:in process_event'", "/usr/share/rvm/gems/ruby-3.2.2/gems/workers-0.6.1/lib/workers/worker.rb:67:in
start_event_loop'",
"/usr/share/rvm/gems/ruby-3.2.2/gems/workers-0.6.1/lib/workers/worker.rb:13:in `block in initialize'"