title: No such file or directory @ rb_sysopen for external URL / Rails 6.11 / Ruby 3
body: <p>This was working fine in Rails 6 but now upgrading Rails and Ruby to 6.11 and 3, it's triggering this &quot;classic&quot; error. Basically, to be short, for example this external URL direct to Firefox logo, using the Rails console:</p>
  <pre><code>require 'open-uri'
  open(&quot;https://brandemia.org/sites/default/files/inline/images/firefox_logo.jpg&quot;)
  </code></pre>
  <pre><code>Traceback (most recent call last):
          4: from (irb):1:in `&lt;main&gt;'
          3: from (irb):2:in `rescue in &lt;main&gt;'
          2: from (irb):2:in `open'
          1: from (irb):2:in `initialize'
  Errno::ENOENT (No such file or directory @ rb_sysopen - https://brandemia.org/sites/default/files/inline/images/firefox_logo.jpg)
  </code></pre>
  <p>In the app same error. Before the Rails and Ruby upgrade (with Ruby 2.5.8 and Rails 6.0.3.1) this was working perfectly fine.</p>