GraphQL Admin API does not return less than 10 products

Highlighted
Tourist
5 0 4

Hello!

It seems that there is some kind of bug in GraphQL Admin AP as I'm not able to receive less than 10 products with "products" query.

Here's the request that returns data just fine:

products(first: 10) {
  edges {
    node {
      handle
    }
  }
}

 

And here's the request that throws an error:

 

products(first: 5) {
  edges {
    node {
      handle
    }
  }
}

 

The only difference is in the number of requested nodes.

 

Error thrown:

 

"errors": [
    {
      "message": "Internal error. Looks like something went wrong on our end.\nRequest ID: aeddc689-d3f1-439c-b965-71370f8a4b06 (include this in support requests)."
    }
  ]

 

0 Likes
Highlighted
Shopify Staff (Retired)
Shopify Staff (Retired)
624 103 124

Hey @kirilsscerba ,

 

Thank you for providing all of that detail and information.

 

I can verify that as of right now there is no issue with the GraphQL Admin API and querying less than 10 products with the "products" query root. Looking through our platform logs for your request ID, it looks like your specific GraphQL request failed because the corresponding query it created in our core database took too long to complete. This was probably a one time error, that could have been caused by a variety of reasons (e.g. surge of traffic on Shopify system at a time). So I would just simply re-run your GraphQL Admin API request again and you should see it succeed now. 

 

Hassain | Developer Support Specialist @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes
Highlighted
Tourist
5 0 4

Hello @hassain 

 

Thank you for looking into this.

The issue is gone now. However, it was constantly present for a couple of days and even progressing - at some point I was not able to get less than 12 products. So I'm a bit afraid of catching it again.

0 Likes