Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Upstream Image Response Failure (403) on Only Some Assets

A topic by Audio Elk created Jun 04, 2023 Views: 1,497 Replies: 2
Viewing posts 1 to 3
(1 edit) (+1)

Hello,
I'm using the API to fetch my itchio store items to display them on my website. The setup was easy enough, but on 2 of my store items' cover_urls I'm getting an upstream image response failure with a 403. These are all published items, nothing in drafts or hidden from public view, and I'm not seeing any difference in how I have the working products set up vs the ones having this problem.


(+1)

Some additional info:


  • I'm using Next.JS 13.4.4
  • These products are published and available
  • next.config.js has the domains properly added to both images.domains and images.remotepatterns as seen below:
const nextConfig = {
  images: {
    domains: ["img.itch.zone", "itch.io"],
    remotePatterns: [
      {
        protocol: "https",
        hostname: "img.itch.zone",
        port: "",
      },
      {
        protocol: "https",
        hostname: "itch.io",
        port: "",
      },
    ],
  },
};
(+1)

SOLVED

The issue that caused this was that I had recently uploaded new cover images for all my products, and the API key I was using was somehow only fetching the old (I presume cached?) data. With some of it not being public anymore that would explain a 403 I'm guessing. By generating a new API key this issue was resolved.

This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.