502 response creating a new product

Highlighted
Tourist
6 0 0

Hi,

 

I'm having problems to create a new product via API, I send the next information but the response is always status code 502.

 

{
  'product': {
    'images': [
      {
        'src': 'https://xxxxxxxxxxxxxxxxx/products/xxxxxx-a356eaf65840.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxx-e4928db77028.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxx-c4bcb9be7007.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxx-a70fdf9fe9b0.jpg'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxx-c566b24866aa.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxxxx-f6ce8b0f45db.jpg'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxx-186bf2fd5ed7.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxxx-7da986e2b3ab.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxx-85350ec10f82.jpg'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxx-df4cf59a81da.jpg'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxx-855f0e8d7d4f.jpg'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxx-42e04a1cd875.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxx-09c30c339419.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxxxxx-d519dc5793a7.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxx-939bebd5b02e.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxx-62e241894def.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxx-1a79d9aefacb.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxx-62a03268ba17.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxx-dca47ff69193.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxxxx-8046c0f1d021.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxx-62493d7e43a9.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxx-36114df80acc.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxxx-6cd22891085d.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxx-731b82e46f07.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxxx-831782769f97.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxxx-6263f3dcf2bd.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxxx-b2f7-cef0e1a6f5f0.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxxx-255471612a4c.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxxx-ef8b902f355f.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxxx-f3061b3fc583.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxxx-48e512abafb6.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxxx-241ae4fadca6.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxxx-a14fe2972a24.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxxx-b5613203ed39.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxxx-12bd58610bf9.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxxx-fb5c31db0160.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxxx-3bb24d378c1f.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxxx-03c5177ce43c.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxxx-42125ff7535b.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxxx-5e6436ed1f3f.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxxx-fb5cda511458.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxxx-4416b7cadb5f.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxxx-0bd536b423c9.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxxx-843d57d67362.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxxx-551499404dca.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxxx-f8cf6345f563.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxxxxxxxxxxxxxxx/products/xxxxxxxxxxxxxxxxxxxxx-9b21a70f3f37.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxx0931461/products/xxxxxxxxxxxxxxxxxxxxx-d073099ddcd4.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxx0931461/products/xxxxxxxxxxxxxxxxxxxxx-bb0091ec9836.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxx0931461/products/xxxxxxxxxxxxxxxxxxxxx-32beb66893eb.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxx0931461/products/xxxxxxxxxxxxxxxxxxxxx-80768feef559.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxx0931461/products/xxxxxxxxxxxxxxxxxxxxx-8aaaf84c9af2.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxx0931461/products/xxxxxxxxxxxxxxxxxxxxx-47ca4479d800.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxx0931461/products/xxxxxxxxxxxxxxxxxxxxx-9f4a956f9850.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxx0931461/products/xxxxxxxxxxxxxxxxxxxxx-c9f8510283b3.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxx0931461/products/xxxxxxxxxxxxxxxxxxxxx-f9804239fc1f.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxx0931461/products/xxxxxxxxxxxxxxxxxxxxx-4063bb468f7b.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxx0931461/products/xxxxxxxxxxxxxxxxxxxxx-70ac55384ae9.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxx0931461/products/xxxxxxxxxxxxxxxxxxxxx-51b48f8dec19.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxx0931461/products/xxxxxxxxxxxxxxxxxxxxx-43869f8ceee0.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxx0931461/products/xxxxxxxxxxxxxxxxxxxxx-8fde73da0507.jpg'
      },
      {
        'src': 'https://xxxxxxxxxxxxxx0931461/products/xxxxxxxxxxxxxxxxxxxxx-5d2a70af3f14.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxx0931461/products/xxxxxxxxxxxxxxxxxxxxx-db80a89a1340.jpg'
      },
      {
        'src': 'https://xxxxxxxxxxxxxx0931461/products/xxxxxxxxxxxxxxxxxxxxx-14b3123d5f06.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxx0931461/products/xxxxxxxxxxxxxxxxxxxxx-f9d63661612e.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxx0931461/products/xxxxxxxxxxxxxxxxxxxxx-9bec6f4e54f3.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxx0931461/products/xxxxxxxxxxxxxxxxxxxxx-b64afcbe9c8b.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxx0931461/products/xxxxxxxxxxxxxxxxxxxxx-6437fad3a8a4.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxx0931461/products/xxxxxxxxxxxxxxxxxxxxx-7d832fd052fc.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxx0931461/products/xxxxxxxxxxxxxxxxxxxxx-28e6516dc61f.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxx0931461/products/xxxxxxxxxxxxxxxxxxxxx-95e1ad7c409c.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxx0931461/products/xxxxxxxxxxxxxxxxxxxxx-29570ef0ad07.JPG'
      },
      {
        'src': 'https://xxxxxxxxxxxxxx0931461/products/xxxxxxxxxxxxxxxxxxxxx-51e9e79855c1.JPG'
      }
    ],
    'options': [
      {
        'name': 'Color',
        'position': 1,
        'values': [
          'Blanco',
          'Navy',
          'Verde',
          'Rosa',
          'Rose',
          'Negro',
          'Champagne',
          'Plateado',
          'Dorado',
          'Gris',
          'Rojo'
        ]
      }
    ],
    'title': 'Set De 3 Maletas',
    'variants': [
      {
        'compare_at_price': 2900.0,
        'inventory_management': 'shopify',
        'inventory_quantity': 129,
        'option1': 'Plateado',
        'price': 2900.0,
        'sku': 'MO-XXXXX1',
        'weight': '12'
      },
      {
        'compare_at_price': 2900.0,
        'inventory_management': 'shopify',
        'inventory_quantity': 64,
        'option1': 'Champagne',
        'price': 2900.0,
        'sku': 'MO-XXXXX2',
        'weight': '12'
      },
      {
        'compare_at_price': 2900.0,
        'inventory_management': 'shopify',
        'inventory_quantity': 43,
        'option1': 'Rose',
        'price': 2900.0,
        'sku': 'MO-XXXXXX3',
        'weight': '12'
      },
      {
        'compare_at_price': 2900.0,
        'inventory_management': 'shopify',
        'inventory_quantity': 1,
        'option1': 'Dorado',
        'price': 2900.0,
        'sku': 'MO-XXXXXXX4',
        'weight': '12'
      },
      {
        'compare_at_price': 2900.0,
        'inventory_management': 'shopify',
        'inventory_quantity': 178,
        'option1': 'Negro',
        'price': 2900.0,
        'sku': 'MO-XXXXXXX5',
        'weight': '12'
      },
      {
        'compare_at_price': 2900.0,
        'inventory_management': 'shopify',
        'inventory_quantity': 10,
        'option1': 'Verde',
        'price': 2900.0,
        'sku': 'MO-XXXXXXX6',
        'weight': '12'
      },
      {
        'compare_at_price': 2900.0,
        'inventory_management': 'shopify',
        'inventory_quantity': 23,
        'option1': 'Gris',
        'price': 2900.0,
        'sku': 'MO-XXXXXX7',
        'weight': '12'
      },
      {
        'compare_at_price': 2900.0,
        'inventory_management': 'shopify',
        'inventory_quantity': 28,
        'option1': 'Rosa',
        'price': 2900.0,
        'sku': 'MO-XXXXXXXX8',
        'weight': '12'
      },
      {
        'compare_at_price': 2900.0,
        'inventory_management': 'shopify',
        'inventory_quantity': 100,
        'option1': 'Navy',
        'price': 2900.0,
        'sku': 'MO-XXXXXXXX9',
        'weight': '12'
      },
      {
        'compare_at_price': 2900.0,
        'inventory_management': 'shopify',
        'inventory_quantity': 32,
        'option1': 'Rojo',
        'price': 2900.0,
        'sku': 'MO-XXXXXXXXX10',
        'weight': '12'
      },
      {
        'compare_at_price': 2900.0,
        'inventory_management': 'shopify',
        'inventory_quantity': 0,
        'option1': 'Blanco',
        'price': 2900.0,
        'sku': 'MO-XXXXXXXXX11',
        'weight': '12'
      }
    ],
    'vendor': 'XXXXXXXX'
  }
}

Please, if anyone have an idea about how to resolve this problem, I would appreciate it.

 

Thank you in advance.

0 Likes
Highlighted
Shopify Staff
Shopify Staff
644 78 141

Hi @Alondra,

 

Can you kindly provide the X-Request-ID value from the response headers of your call? I can use this to find your call in the logs and hopefully get more information about the error you're seeing.

JB | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes
Highlighted
Tourist
6 0 0

Hi @_JB,

 

Sure, the X-Request-ID is a851324b-bdac-4b39-94f9-xxxxxxxxx.

 

Thank you for your kind help!

0 Likes
Highlighted
Tourist
6 0 0

Hi @_JB ,

 

Any update? Thank you for your help

0 Likes
Highlighted
Shopify Staff
Shopify Staff
644 78 141

Hey @Alondra,

 

Thanks for providing the request id. I've checked our logs, and I can see this error is occuring due to a timeout on our side. I'll be raising this with our developers for further investigation and will post back here when I get an update. In the meantime, I suggest trying your request with a smaller number of images, as that will be less likely to time out.

JB | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes
Highlighted
Tourist
6 0 0

Hi @_JB 

 

Thank you for the information, I'll change my request. Please, let me know if there is any update.

 

Thank you again for your help

0 Likes