GraphQL orders endpoint returns "Internal error"

Anyone knows why we recieve this error, only on few specific orders, requesting order information using the Orders endpoint.

Error in question

{
    "errors": [
        {
            "message": "Internal error. Looks like something went wrong on our end.\nRequest ID: 390b9c9c-7960-426a-b727-84189fa9ec93-1736774831 (include this in support requests).",
            "extensions": {
                "code": "INTERNAL_SERVER_ERROR",
                "requestId": "390b9c9c-7960-426a-b727-84189fa9ec93-1736774831"
            }
        }
    ],
    "data": null
}

This is (part of) my query

query GetOrdersWithLineItems(
    $firstOrders: Int,
    $afterOrder: String,
    $orderFilter: String,
    $firstLineItems: Int,
    $capturable: Boolean
) {
    orders(
        first: $firstOrders,
        after: $afterOrder,
        query: $orderFilter
    ) {
        edges {
            node {
                id
                ...other fields
                transactions(capturable: $capturable) {
                    id
                    ...other fields
                    amountSet {
                        ...
                    }
                    totalUnsettledSet {
                        ...
                    }
                    paymentMethod
                    errorCode
                }
                discountCodes
            }
            cursor
        }
        pageInfo {
            hasNextPage
            hasPreviousPage
            endCursor
            startCursor
        }
    }
}

If I remove paymentMethod from transactions then theres no error.

Hey Curzey,

Are there any commonalities on these specific orders where the error is appearing?

Not really. That was kinda the problem. Adyen payment method was used.

But I guess it’s not really too relevant. Noticed that paymentMethod on transaction is deprecated anyways :yum:

Hi @curzey

I saw a similar spike in intermittent 500 errors from the Orders API this morning, but unfortunately I haven’t added good response header logging yet to capture the Shopify response ID.

The timeframe of the spike in 500’s from Shopify I’m seeing is starting around 2025-01-14T12:32:45.306Z and ending around 2025-01-14T12:44:52.825Z

It’s been about ~3 hours since the last failed request for us.

1 Like