What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

[BUG] Order Edits with added lines failing

Solved

[BUG] Order Edits with added lines failing

Brian_S
Shopify Partner
171 21 44

This seems to have just started a few hours ago with no change in our requests from what I can tell. Requests to add lines to orders are failing after a long request to commit the change. 

 

To replicate: 

 

begin order edit

mutation beginEdit ($id: ID!) {
  orderEditBegin(id: $id) {
    calculatedOrder {
      id
    }
  }
}

that works and recorded the CalculatedOrder gid

 

add variant: 

mutation addVariantToOrder($id: ID!, $quantity: Int!, $variantId: ID!) {
  orderEditAddVariant(id: $id, variantId: $variantId, quantity: $quantity) {
    calculatedOrder {
      id
      addedLineItems(first: 3) {
        edges {
          node {
            id
            quantity
          }
        }
      }
    }
    userErrors {
      field
      message
    }
  }
}

that works as expected and shows the added line item

 

commit order edit:

mutation commitEdit($id: ID!) {
  orderEditCommit(id: $id, notifyCustomer: false) {
    order {
      id
    }
    userErrors {
      field
      message
    }
  }
}

That request takes about 20 seconds and then always returns this error: 

{
	"data": {
		"orderEditCommit": {
			"order": null,
			"userErrors": [
				{
					"field": [
						"id"
					],
					"message": "Could not save the order edit."
				}
			]
		}
	},
	"extensions": {
		"cost": {
			"requestedQueryCost": 10,
			"actualQueryCost": 10,
			"throttleStatus": {
				"maximumAvailable": 1000.0,
				"currentlyAvailable": 990,
				"restoreRate": 50.0
			}
		}
	}
}

Example x-request-id:

fc0170d8-81c9-4d67-8732-e2b0125882cd

 

 

This is impacting a lot of merchants right now

Brian Singer
CTO & Cofounder of Subscription Service - Awtomic
Accepted Solution (1)
Liam
Community Manager
3108 344 895

This is an accepted solution.

Hi Brian - a fix for this was deployed yesterday. Let us know if you're still seeing any issues.

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Replies 2 (2)

Brian_S
Shopify Partner
171 21 44

Looks like Shopify is aware: 

https://twitter.com/liam_at_shopify/status/1735317486764015676

Brian Singer
CTO & Cofounder of Subscription Service - Awtomic
Liam
Community Manager
3108 344 895

This is an accepted solution.

Hi Brian - a fix for this was deployed yesterday. Let us know if you're still seeing any issues.

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog