Unable to fetch items with Storefront API

I keep getting this error on our production website, but not sure what is causing the issue as the error message if vague. Can I ask what might be causing this issue? It was working fine a week ago.

{
    "errors": [
        {
            "message": "Internal error. Looks like something went wrong on our end.\nRequest ID: c763fb8f-b61e-493e-8e24-b3e720f6eb16-1745504030 (include this in support requests).",
            "extensions": {
                "code": "INTERNAL_SERVER_ERROR",
                "requestId": "c763fb8f-b61e-493e-8e24-b3e720f6eb16-1745504030"
            }
        }
    ]
}

This is my full query:

const productsQuery = `
    query Products {
      products(first: 250) {
        edges {
          node {
            id
            title
            description
            handle
            tags
            priceRange {
              minVariantPrice {
                amount
              }
            }
            images(first: 1) {
              edges {
                node {
                  url
                  altText
                }
              }
            }
            variants(first: 40) {
              edges {
                node {
                  id
                  title
                  selectedOptions {
                    name
                    value
                  }
                }
              }
            }
          }
        }
      }
    }

Did you try to use Postman or Insomnima to query it? or which API version are you using? I just tried query at version 2025-04 still return normally

It’s the 2024-01 version! And yes, it works sporadically – so now it’s working again. But for hours at a time it will return the same error for no specific reason… :frowning:

Maybe your store have too many products so query timeout?

Hi @Eryn_Seo whether problem like this Internal error. Looks like something went wrong on our end - #3 by gustavorino ?

Hi @Eryn_Seo

Recommend using the latest version of API

Hey @Eryn_Seo and all :waving_hand: - just following up here.

I took a look at the request ID Eryn shared in our logs here, and from what I can tell the error message does look similar to what happens on our end when too many resources are being requested for the return response. The initial query there is a little on the larger side (we do generally recommend paginating through response objects if you do anticipate you’ll be making frequent larger queries, a bit more info here: Paginating results with GraphQL), so my suspicion is that’s what caused the issue here.

I can’t say for sure if that’s what’s happening there and since the issue seemed to have resolved itself, it could have just been an intermittent issue. That said, if you folks do see this pop up again, can you just ping me here/share another example request and we’ll take a look? I’ll make a note on my end so that we can track this if the issue occurs again - thanks!