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.

502 Bad Gateway Error in Draft Orders api

502 Bad Gateway Error in Draft Orders api

SimplyCoffee
Visitor
3 0 1

Hi,

We're getting intermittent 502 Bad Gateway error when calling draft_orders/{id}/complete.json using Shopify Sharp. Currently we are using API version 2021-07. Will updating fix this issue. An example of this is RequestId: 8599b24d-9aef-4387-9cb6-d9432bb4984f.

Replies 2 (2)

Liam
Community Manager
3108 342 884

Hi SimplyCoffee,

 

The API version 2021-07 is outdated and no longer supported, so what is happening now is that for these API calls, Shopify falls forward and responds to your request with the same behaviour as the oldest supported stable version. That being said you should update the version and see if this is causing the error, as it's not recommended to rely on Shopify's fallback behaviour. 

 

Hope this helps,

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

Dev2b
Shopify Partner
2 0 0

I am using version 2023-10 which is the stable version of the api and it is giving me the same 502 error, is there any other way to solve this?