Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers.
We are using Python's Shopify API in a Django project.
API version: 2020-04
I'm using Order's Update API to update tags on the order. It's working most of the time but randomly I get this exception
BadRequest
Response(code=400, body="b'{"errors":{"fulfillments":"array contains unpermitted members"}}'", headers={'Date': 'Fri, 19 Feb 2021 16:31:21 GMT', 'Content-Type': 'application/json; charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'close'....
Now weird thing is that I don't update anything on the Shopify order instance except tags, yet the error is about fulfillments. This is the pseudo-code of what I am doing
shopify_order = fetch_order_from_shopify()
shopify_order.tags = 'new_tags'
shopify_order.save()
I've gone through code and exceptions multiple times but I can't figure out the reason. Any help would be appreciated.
Thanks 🙂
Hey @fahadnoor
Are you able to capture the request ID from the response headers?
Scott | Developer Support @ 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
Hello:
I have just run into the same issue with API version 2021-10. Did you ever get a solution?
My Request-ID that failed is '925b234c-3390-495b-9c04-7e84d1cb3fef' if that is helpful.
User | RANK |
---|---|
5 | |
4 | |
4 | |
3 | |
3 |