CartLinesApiError: Negotiation was stale.

CartLinesApiError: Negotiation was stale.

BIABAJay
Shopify Partner
15 0 15

I'm working no an extensions that adds fees to the cart based on state. I have two different types of fees I need to add. I got it working with a single fee. It processes the cart every 2 seconds and adds, updates, or removes the fee as needed. 

 

I've now added a second fee that needs to be processed and I'm getting this error. 

 

CartLinesApiError: Negotiation was stale.

 

I assume it's because I'm running one applyCartLinesChange twice in a row. Any ideas what I should do to fix this?

Reply 1 (1)

mikel3342
Shopify Partner
6 0 0

I got same err
but i using diff api hooks and it seems it happens when shopify execute its in parallel, but there is not documentation about this limitation