Internal Server Error: Products Filters

alexandervitto1
Shopify Partner
2 0 0

Hi all,

 

I have graphql queries to request product filters. But, sometimes get INTERNAL_SERVER_ERROR. My query:

query getCollection($country: CountryCode!, $handle: String!, $size: Int!) @inContext(country:$country) {
    collection(handle:$handle ) {
      handle 
      products(first: $size) {
      filters {
          id
          label
          type
          values {
            id
            label
            count
            input
          }
        }
      pageInfo{
        startCursor
        endCursor
        hasNextPage
        hasPreviousPage
      }
      edges {
        node {
          id
          title
          vendor
          handle
          productType
          tags
          totalInventory
          availableForSale
          variants(first:5){
            edges{
              node{
                id
                quantityAvailable
              }
            }
          }
          images(first:1){
            edges{
              node{
                url
              }
            }
          }
          priceRange {
            minVariantPrice {
              amount
              currencyCode
            }
            maxVariantPrice {
              amount
              currencyCode
            }
          }
          compareAtPriceRange {
            minVariantPrice {
              amount
              currencyCode
            }
            maxVariantPrice {
              amount
              currencyCode
            }
          }
        }
      }
   		
    }
  }
}

response:

{ "errors": [ { "message": "Internal error. Looks like something went wrong on our end.\nRequest ID: d6a15c28-ee84-4726-afa8-2a5c293d4d40 (include this in support requests).", "extensions": { "code": "INTERNAL_SERVER_ERROR", "requestId": "d6a15c28-ee84-4726-afa8-2a5c293d4d40" } } ] }

 

Replies 0 (0)