Getting 500 on Storefront API Request.

Topic summary

A developer is encountering a 500 Internal Server Error when making a GraphQL request to the Storefront API from a Next.js application. The error includes a specific Request ID for support tracking.

The query attempts to fetch product data including title, inventory, handle, tags, and category information.

Root Cause Identified:
Another user confirmed experiencing the same issue and identified that the category field in the query is causing the error. Removing this field resolves the 500 error.

Current Status:
The issue remains unresolved for users who specifically need the category data. A workaround exists (removing the category field), but this doesn’t address the underlying API problem or meet the original requirement.

Summarized with AI on November 2. AI used: claude-sonnet-4-5-20250929.

While Making Graphql Request from my Next.js Application
I am getting this error.

not sure what went wrong?

GraphQL Request Error: ClientError: Internal error. Looks like something went wrong on our end. Request ID: fe329315-3d43-44bf-b75d-d516a3cd86e3-1733218749 (include this in support requests).: {“response”:{“errors”:[{“message”:“Internal error. Looks like something went wrong on our end.\nRequest ID: fe329315-3d43-44bf-b75d-d516a3cd86e3-1733218749 (include this in support requests).”,“extensions”:{“code”:“INTERNAL_SERVER_ERROR”,

Query →

  query getProducts($first: Int = 10, $query: String) {
    products(first: $first, query: $query) {
      pageInfo {
        hasNextPage
        hasPreviousPage
      }
      edges {
        node {
          title
          totalInventory
          handle
          tags
          category {
            name
          }
        }
      }
    }
  }

I’m having the same issue, and it’s with your product category field. Remove that and you’ll not have the issue; unfortunately it’s what I’m looking for.