title: NextJS throws `"url" parameter is valid but upstream response is invalid"`
body: <p>When i try to get a image from i receive this error:</p>
  <pre><code>&quot;url&quot; parameter is valid but upstream response is invalid
  </code></pre>
  <p>Happening only on production localhost works tho any idea what could be</p>
  <p>Using nextjs <code>next&quot;: &quot;^12.0.4&quot;</code></p>
  <p><a href="https://i.stack.imgur.com/PwgK9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PwgK9.png" alt="Error example" /></a></p>