I’m receiving a 200 status code response, but the necessary data isn’t in the body. Instead I get this object with errors:
{"errors":[{"message":"Internal error. Looks like something went wrong on our end.\nRequest ID: 25213b80-95eb-4c02-92b0-9d46e13894a5 (include this in support requests)."}]}
Can the Shopify Developer Experience team help me with this one? What is going wrong?
It happens consistently when I go through the following steps:
- Add products to Cart > Checkout > Progress to the Payment page
- On the payment page > transition back to the Cart
- Open the Cart flyout > Attempt to modify/remove the quantities of products in Cart
Here is my API request as a fetch method, along with the graphQL query.
fetch("https://www.thirdlove.com/api/graphql.json", {
"headers": {
"accept": "application/json",
"accept-language": "en-US,en;q=0.9",
"content-type": "application/json",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "same-origin",
"x-shopify-storefront-access-token": "[redacted]"
},
"referrer": "https://www.thirdlove.com/",
"referrerPolicy": "no-referrer-when-downgrade",
"body": "{\"query\":\"\\n mutation checkoutLineItemsReplace($lineItems: [CheckoutLineItemInput!]!, $checkoutId: ID!, $itemsCountLimit: Int) {\\n checkoutLineItemsReplace(lineItems: $lineItems, checkoutId: $checkoutId) {\\n checkout {\\n \\n id\\n completedAt\\n email\\n currencyCode\\n subtotalPriceV2 {\\n amount\\n }\\n \\n lineItems(first: $itemsCountLimit) {\\n edges {\\n node {\\n id\\n quantity\\n title\\n customAttributes {\\n key\\n value\\n }\\n discountAllocations {\\n allocatedAmount {\\n amount\\n }\\n discountApplication {\\n ... on DiscountCodeApplication {\\n code\\n applicable\\n }\\n ... on ScriptDiscountApplication {\\n scriptDiscountApplicationTitle: title\\n }\\n ... on ManualDiscountApplication {\\n manualDiscountApplicationTitle: title\\n }\\n ... on AutomaticDiscountApplication {\\n automaticDiscountApplicationTitle: title\\n }\\n value {\\n ... on MoneyV2 {\\n amount\\n }\\n ... on PricingPercentageValue {\\n percentage\\n }\\n }\\n }\\n }\\n variant {\\n id\\n availableForSale\\n sku\\n product {\\n id\\n handle\\n productType\\n images(first: 2) {\\n edges {\\n node {\\n originalSrc\\n }\\n }\\n }\\n }\\n selectedOptions {\\n name\\n value\\n }\\n priceV2 {\\n amount\\n }\\n }\\n }\\n }\\n }\\n\\n \\n shippingAddress {\\n firstName\\n lastName\\n address1\\n address2\\n zip\\n city\\n province\\n country\\n phone\\n }\\n\\n \\n customAttributes {\\n key\\n value\\n }\\n\\n\\n }\\n userErrors {\\n code,\\n message,\\n field\\n }\\n }\\n }\\n\",\"variables\":{\"checkoutId\":\"Z2lkOi8vc2hvcGlmeS9DaGVja291dC80NTY0ZTI2MDYzNjI3N2Y5ZTJhYWUxZmJmNzFmYzkxMj9rZXk9YmJjZjc2ZmE2OTVkOTFlZGU1OGVmODVhYzk5ZTk0MWY=\",\"lineItems\":[{\"variantId\":\"Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0VmFyaWFudC8yNzk5NzU1MDcwNjc5MA==\",\"quantity\":2,\"customAttributes\":[]}],\"itemsCountLimit\":25}}",
"method": "POST",
"mode": "cors",
"credentials": "include"
});
I suspect (but can’t prove) that this is related to the checkout ID changing after the payment method has been reached. Can anybody confirm, or give me some more useful information? Thank you in advance for your time.