Admin GraphQL Orders: INTERNAL_SERVER_ERROR at 200 Orders despite small nested pages (2026-07)

Hi Shopify developers,

Our service repeatedly receives INTERNAL_SERVER_ERROR when fetching 200 Orders with nested data. Smaller Orders pages succeed with all selected fields retained, but reducing only the nested page sizes does not resolve the failure.

Could you please investigate the request IDs, confirm whether this can be addressed on Shopify’s side, and recommend a reliable fetching strategy? We have also opened private Partner Support ticket 71411227.

Environment

  • Test store: https://lc-test-orders-0001.myshopify.com
  • API: Admin GraphQL orders, version 2026-07.
  • Filter: updated_at range, with matching sortKey: UPDATED_AT.
  • First affected Order: #507585, gid://shopify/Order/8168365523237, observed updatedAt: 2026-10-15T14:17:44Z.
  • Captured October 24, 2026; all timestamps are UTC.

Captured failures

Orders per request Request started, UTC HTTP status Duration, seconds Shopify request ID
200 2026-10-24T19:19:08.298Z 200 24.335 a15a109b-fbde-4b3b-abc6-3f0d63b0bfa5-1792869548
50 2026-10-24T19:27:15.978Z 500 45.418 896e775d-1ae7-4d2f-a24a-52125efec8eb-1792870036

The 200-Order request returned HTTP 200 with GraphQL INTERNAL_SERVER_ERROR and data: null. Its provider message was:

Internal error. Looks like something went wrong on our end.
Request ID: a15a109b-fbde-4b3b-abc6-3f0d63b0bfa5-1792869548 (include this in support requests).

The entire HTTP 500 comparison response was:

{"errors":"Internal Server Error"}

Both responses arrived before our 70-second diagnostic deadline, so these were provider errors, not client timeouts. Neither reported THROTTLED or MAX_COST_EXCEEDED.

What we tested

The complete query and exact variables are included below. The failing request selects initial nested pages of 7 order line items, 2 fulfillment orders, 7 fulfillment-order line items and 7 fulfillment line items. It does not request every underlying nested entity in 1 response.

  • Repeated failure: our original integration recorded 36 Shopify requests across 9 application-level attempts, all returning HTTP 200 with GraphQL INTERNAL_SERVER_ERROR.
  • Smaller Orders pages succeed: keeping all selected fields, the filter, sort and original starting cursor unchanged, 8 consecutive 25-Order requests returned the same 200 distinct Orders. Each subsequent request used the previous response’s endCursor.
  • Many underlying relationships: 192 of those 200 Orders have 199 fulfillment orders each. The first Order has 398 order line items, 199 fulfillment orders and 398 fulfillment-order line items. These complete inventories were collected separately from the initial-page requests.
  • Smaller nested pages still fail: setting all 4 nested limits to 1 still failed at 200 Orders. Request ID: 05c4028c-23a0-463a-83ac-dd2a801c29a3-1792874866

Questions

The generic error does not distinguish temporary service unavailability from a request-processing limit or a repeatable Order/field-specific failure.

  1. Can you please investigate these request IDs and confirm whether Shopify can fix the underlying issue, or whether our fetching approach must change?

  2. If Shopify cannot process the request, can the API return a specific error explaining why and how to recover? Is it possible to distinguish requests that are too expensive to process from temporary service failures, and indicate whether we should retry, reduce the request size or contact support? Can a query that passes the documented 1,000-point cost check still fail because of another processing limit?

  3. What approach would you recommend to fetch these Orders reliably while retaining all required data? Given the limited initial nested page sizes above, would you recommend dynamically reducing the number of Orders per page, or another approach? The bulk API also has a limit of 5 connections and a maximum of 2 nested connections when requesting reports.

Hey @Ulan_Djamanbalaev - thanks for flagging this, and for the detailed request IDs and test results. I looked into the requests you shared and answered each of your questions below.

Can Shopify fix this, or does your fetching approach need to change?

Your fetching approach needs to change. Nested first arguments limit what the API returns, but the work needed to resolve those connections still scales with the total child records on every order in the page. That’s why setting the nested limits to 1 didn’t help, while 25-order pages succeeded. There isn’t a platform change I can point you to, so I’d plan around the options below.

Can the API return a specific error, or distinguish an expensive request from a temporary failure?

Not currently. Requests that are too expensive to process can come back as HTTP 200 with INTERNAL_SERVER_ERROR, as an HTTP 500, or in some cases as TIMEOUT, and these look the same as a temporary failure. On a large page, treat any of these as a signal to reduce the request size. Halve the page size and retry the same cursor once instead of repeating the identical request. If a small page or a single-order request still fails, contact Partner Support with the full X-Request-ID from the response. I’m also going to make sure the relevant team hears feedback about the specific examples you shared.

Can a query that passes the 1,000-point cost check still fail on another limit?

Yes. Shopify checks the cost limit against the requested cost before the query runs, and requested cost doesn’t account for how many child records each order has. A query within the cost limit can still exceed server execution limits when the records it touches have many children.

What’s the most reliable way to fetch these orders with all the data you need?

  • Size pages by how many child records the orders have, not by the nested first values. Reducing the page size dynamically, as described above, is a good fallback. For this data, 25 orders per page succeeded in your tests and 50 failed.
  • To keep larger order pages and all your fields, page orders with order-level fields only, then fetch each order’s children with order(id:) and paginate each nested connection with cursors. Each of those requests only does the work for one order’s records.
  • For backfills, use a bulk operation. Order.fulfillments is a list rather than a connection, so the nested data in your post uses five connections: orders, lineItems, fulfillmentOrders, fulfillmentOrders.lineItems, and fulfillmentLineItems. The deepest nesting is two levels, which keeps it within the documented limits. On API version 2026-01 and later, you can run up to five bulk queries per shop at once, so you can split a backfill by updated_at window.