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.