orderEditSetQuantity throwing an exception when requesting totalOutstandingSet

longinoa
Excursionist
15 1 0
        mutation removeLineItem($id: ID!, $lineItemId: ID!) {
            orderEditSetQuantity(id: $id, lineItemId: $lineItemId, quantity: 0) {
                calculatedOrder {
                    id
                    lineItems(first: 30) {
                        edges {
                            node {
                                id
                            }
                        }
                        pageInfo {
                            hasNextPage,
                            hasPreviousPage
                        }
                    }
                    totalOutstandingSet {
                        presentmentMoney {
                            amount
                        },
                        shopMoney {
                            amount
                        }
                    }
                },
                userErrors {
                    field,
                    message
                }
            }
        }

{"id":"gid://shopify/CalculatedOrder/7828865199","lineItemId":"gid://shopify/CalculatedLineItem/9196210520239"}
{"errors":[{"message":"Internal error. Looks like something went wrong on our end.\nRequest ID: cf3bbfd0-3473-4c44-bf35-01eb58b3e1b9 (include this in support requests).","extensions":{"code":"INTERNAL_SERVER_ERROR","requestId":"cf3bbfd0-3473-4c44-bf35-01eb58b3e1b9"}}]}

 

If i remove the totalOutstandingSet {...} the query works correctly

0 Likes
longinoa
Excursionist
15 1 0

This appears to be true for many of the APIs. I just ran into this on a straight node query as well

 

query LineItemQuery($id: ID!) {
  node(id: $id) {
    ... on CalculatedOrder {
      lineItems(first: 30) {
        edges {
          node {
            id
            quantity
            variant {
              id
            }
          }
        }
        pageInfo {
          hasNextPage
          hasPreviousPage
        }
      }
      totalOutstandingSet {
        shopMoney {
          amount
        }
        presentmentMoney {
          amount
        }
      }
    }
  }
}

 

{"id":  "gid://shopify/CalculatedOrder/12190548143"}

 

{
  "errors": [
    {
      "message": "Internal error. Looks like something went wrong on our end.\nRequest ID: 8c0d8d3b-c9c1-4d5d-8929-78477c64808e (include this in support requests).",
      "extensions": {
        "code": "INTERNAL_SERVER_ERROR",
        "requestId": "8c0d8d3b-c9c1-4d5d-8929-78477c64808e"
      }
    }
  ]
}
0 Likes