We have noticed an increase of 502 Bad Gateway Errors when calling different APIs (admin/api/2022-07/graphql.json). Examples:
-
order(id: “gid://shopify/Order/${orderId}”)
-
query resellerStoreData($customerId: ID!) {
customer(id: $customerId) {
-
query productVariantNodes($ids: [ID!]!) {
502 Bad Gateway
502 Bad Gateway
nginx
1 Like
Hello @SergioYamada ,
Here we have listed the possible scenarios that might be the reason behind a 502 error response when you call API.
- Shopify API can get overloaded so you can try adding a delay in calling each API.
- If you are using an app proxy then make sure it has the correct endpoints.
- You might check your code if it requests the same API multiple times, this may overload the Shopify server and it will not return any response.
Note: API should return the data within 90 seconds, else, you need to contact Shopify support.
Hope it helps, let us know if you need any other help.
Regards,
CedCommerce