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.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

CartLinesApiError: Negotiation was stale.

CartLinesApiError: Negotiation was stale.

BIABAJay
Shopify Partner
15 0 20

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