Next.js Discord

Discord Forum

Next Image is not working over HTTPS

American black bear posted this in #help-forum
Open in Discord
American black bearOP
Images are not loading if I host my website on HTTPS. Everything works fine over HTTP.

The error occurs because Next is apparently trying to make a fetch request to Getting the error upstream image response failed for /images/sample/home-page-03-hero-image-tile-02.jpg TypeError: fetch failed in my server, and if you check the remoteAddress and remotePort properties of the error details, you'll understand that Next is trying to reach localhost:443.

What am I doing wrong?

Please check the attached screenshot for a detailed description of the error.

0 Replies