Error: Internal error. Looks like something went wrong on our end.

zari_azeem98
New Member
3 0 0

Hi! I'm using this query to fetch products based on the product type such as product_type:pret. In some cases, I'm using OR condition as well where the query becomes product_type:pret OR product_type:formal. With some filters, it's returning the exact result but for some, it randomly returns Error: Internal error. Looks like something went wrong on our end. Like it may be working fine for a query one day and will start displaying the error on that same query the next day. Does anyone have any idea what might I be doing wrong or how can I resolve this issue.

  query productFetch($first: Int, $after: String, $query: String) {
    products(sortKey:UPDATED_AT, first: $first, after: $after, query: $query) {
      edges {
        node {
          priceRange {
            minVariantPrice {
              amount
              currencyCode
            }
          }
          updatedAt
          productType
          title
          images(first: 1) {
            edges {
              node {
                transformedSrc(maxWidth: 300)
              }
            }
          }
        }
        cursor
      }
      pageInfo {
        hasNextPage
      }
    }
  }

 

 

0 Likes