A space to discuss online store customization, theme development, and Liquid templating.
Hello, I am getting bad gateway 502 error when I upload a product with many images, this is the json:
{
"title": "Portaposate Optima Vertex/Concept 500mm (Spalle 16mm)",
"body_html": "Portaposate per cassetti da cucina Vertex e Concept con un disegno lineare e una gran capacit\u00e0 di riempimento per posate e altri utensili da cucina. Da utilizzare con cassetti montati in <strong><strong> moduli con larghezza da 400mm a 1000mm, con profondit\u00e0 500mm e con pannelli di spessore 16mm.\u00a0 </strong></strong>Realizzato i<strong><strong>n plastica bianca e grigio antracite.</strong></strong><pre id=\"\"tw-target-text\"\" class=\"\"tw-data-text tw-text-large XcVN5d tw-ta\"\" dir=\"\"ltr\"\" data-placeholder=\"\"Traducci\u00f3n\"\">\u00a0</pre>",
"status": "active",
"published_at": "2021-07-30T10:01:49.142629",
"published_scope": "global",
"gift_card": false,
"vendor": "Emuca",
"product_type": "Organizzatori per la cucina",
"images": [
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393275918.main.jpg",
"position": 1
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/8333215-croquis",
"position": 2
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/83258-cotas_montaje",
"position": 3
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393275918.PT20.jpg",
"position": 4
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_BL-1.jpg",
"position": 5
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_BL-2.jpg",
"position": 6
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393272535.main.jpg",
"position": 7
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/8333723-croquis",
"position": 8
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/83258-cotas_montaje",
"position": 9
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393272535.PT20.jpg",
"position": 10
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_GA-1.jpg",
"position": 11
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_GA-2.jpg",
"position": 12
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393275956.main.jpg",
"position": 13
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/8333615-croquis",
"position": 14
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/83258-cotas_montaje",
"position": 15
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393275956.PT20.jpg",
"position": 16
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_BL-1.jpg",
"position": 17
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_BL-2.jpg",
"position": 18
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393275925.main.jpg",
"position": 19
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/83258-croquis",
"position": 20
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/83258-cotas_montaje",
"position": 21
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393275925.PT20.jpg",
"position": 22
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_BL-1.jpg",
"position": 23
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_BL-2.jpg",
"position": 24
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393275963.main.jpg",
"position": 25
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/8333715-croquis",
"position": 26
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/83258-cotas_montaje",
"position": 27
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393275963.PT20.jpg",
"position": 28
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_BL-1.jpg",
"position": 29
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_BL-2.jpg",
"position": 30
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393275932.main.jpg",
"position": 31
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/8333415-croquis",
"position": 32
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/83258-cotas_montaje",
"position": 33
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393275932.PT20.jpg",
"position": 34
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_BL-1.jpg",
"position": 35
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_BL-2.jpg",
"position": 36
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393275901.main.jpg",
"position": 37
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/8333115-croquis",
"position": 38
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/83258-cotas_montaje",
"position": 39
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393275901.PT20.jpg",
"position": 40
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_BL-1.jpg",
"position": 41
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_BL-2.jpg",
"position": 42
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393275949.main.jpg",
"position": 43
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/8333515-croquis",
"position": 44
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/83258-cotas_montaje",
"position": 45
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393275949.PT20.jpg",
"position": 46
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_BL-1.jpg",
"position": 47
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_BL-2.jpg",
"position": 48
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393275895.main.jpg",
"position": 49
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/8333015-croquis",
"position": 50
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/83258-cotas_montaje",
"position": 51
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393275895.PT20.jpg",
"position": 52
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_BL-1.jpg",
"position": 53
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_BL-2.jpg",
"position": 54
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393272504.main.jpg",
"position": 55
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/8333423-croquis",
"position": 56
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/83258-cotas_montaje",
"position": 57
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393272504.PT20.jpg",
"position": 58
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_GA-1.jpg",
"position": 59
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_GA-2.jpg",
"position": 60
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393272474.main.jpg",
"position": 61
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/83258-croquis",
"position": 62
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/83258-cotas_montaje",
"position": 63
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393272474.PT20.jpg",
"position": 64
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_GA-1.jpg",
"position": 65
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_GA-2.jpg",
"position": 66
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393272528.main.jpg",
"position": 67
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/8333623-croquis",
"position": 68
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/83258-cotas_montaje",
"position": 69
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393272528.PT20.jpg",
"position": 70
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_GA-1.jpg",
"position": 71
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_GA-2.jpg",
"position": 72
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393272498.main.jpg",
"position": 73
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/83258-croquis",
"position": 74
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/83258-cotas_montaje",
"position": 75
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393272498.PT20.jpg",
"position": 76
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_GA-1.jpg",
"position": 77
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_GA-2.jpg",
"position": 78
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393272467.main.jpg",
"position": 79
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/8333023-croquis",
"position": 80
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/83258-cotas_montaje",
"position": 81
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393272467.PT20.jpg",
"position": 82
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_GA-1.jpg",
"position": 83
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_GA-2.jpg",
"position": 84
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393272511.main.jpg",
"position": 85
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/8333523-croquis",
"position": 86
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/83258-cotas_montaje",
"position": 87
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393272511.PT20.jpg",
"position": 88
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_GA-1.jpg",
"position": 89
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_GA-2.jpg",
"position": 90
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393272481.main.jpg",
"position": 91
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/8333223-croquis",
"position": 92
},
{
"src": "https://www.emucaonline.com/catalog/images/pdf-to-image/83258-cotas_montaje",
"position": 93
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/8432393272481.PT20.jpg",
"position": 94
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_GA-1.jpg",
"position": 95
},
{
"src": "https://www.emucaonline.com/catalog/images/sl-variants/OPTIMA_GA-2.jpg",
"position": 96
}
],
"variants": [
{
"weight": 0.647,
"price": 24.311799999999998,
"barcode": "8432393275918",
"sku": "8333215",
"grams": 647.0,
"inventory_management": "shopify",
"inventory_policy": "deny",
"fulfillment_service": "manual",
"requires_shipping": true,
"taxable": true,
"weight_unit": "kg",
"option1": "1 UN | Modulo 500 mm",
"option2": "Plastica bianca | Tecnoplastica",
"option3": "5 | 44,5 | 52"
},
{
"weight": 1.31,
"price": 34.2304,
"barcode": "8432393272535",
"sku": "8333723",
"grams": 1310.0,
"inventory_management": "shopify",
"inventory_policy": "deny",
"fulfillment_service": "manual",
"requires_shipping": true,
"taxable": true,
"weight_unit": "kg",
"option1": "1 UN | Modulo 1.000 mm",
"option2": "Plastica grigio antracite | Tecnoplastica",
"option3": "5 | 96,5 | 52"
},
{
"weight": 1.19,
"price": 33.7729,
"barcode": "8432393275956",
"sku": "8333615",
"grams": 1190.0,
"inventory_management": "shopify",
"inventory_policy": "deny",
"fulfillment_service": "manual",
"requires_shipping": true,
"taxable": true,
"weight_unit": "kg",
"option1": "1 UN | Modulo 900 mm",
"option2": "Plastica bianca | Tecnoplastica",
"option3": "5 | 86,5 | 52"
},
{
"weight": 0.822,
"price": 26.1967,
"barcode": "8432393275925",
"sku": "8333315",
"grams": 822.0,
"inventory_management": "shopify",
"inventory_policy": "deny",
"fulfillment_service": "manual",
"requires_shipping": true,
"taxable": true,
"weight_unit": "kg",
"option1": "1 UN | Modulo 600 mm",
"option2": "Plastica bianca | Tecnoplastica",
"option3": "5 | 57,5 | 52"
},
{
"weight": 1.31,
"price": 35.0173,
"barcode": "8432393275963",
"sku": "8333715",
"grams": 1310.0,
"inventory_management": "shopify",
"inventory_policy": "deny",
"fulfillment_service": "manual",
"requires_shipping": true,
"taxable": true,
"weight_unit": "kg",
"option1": "1 UN | Modulo 1.000 mm",
"option2": "Plastica bianca | Tecnoplastica",
"option3": "5 | 96,5 | 52"
},
{
"weight": 0.93,
"price": 30.058,
"barcode": "8432393275932",
"sku": "8333415",
"grams": 930.0,
"inventory_management": "shopify",
"inventory_policy": "deny",
"fulfillment_service": "manual",
"requires_shipping": true,
"taxable": true,
"weight_unit": "kg",
"option1": "1 UN | Modulo 700 mm",
"option2": "Plastica bianca | Tecnoplastica",
"option3": "5 | 66,5 | 52"
},
{
"weight": 0.613,
"price": 23.122300000000003,
"barcode": "8432393275901",
"sku": "8333115",
"grams": 613.0,
"inventory_management": "shopify",
"inventory_policy": "deny",
"fulfillment_service": "manual",
"requires_shipping": true,
"taxable": true,
"weight_unit": "kg",
"option1": "1 UN | Modulo 450 mm",
"option2": "Plastica bianca | Tecnoplastica",
"option3": "5 | 39,5 | 52"
},
{
"weight": 1.07,
"price": 30.2044,
"barcode": "8432393275949",
"sku": "8333515",
"grams": 1070.0,
"inventory_management": "shopify",
"inventory_policy": "deny",
"fulfillment_service": "manual",
"requires_shipping": true,
"taxable": true,
"weight_unit": "kg",
"option1": "1 UN | Modulo 800 mm",
"option2": "Plastica bianca | Tecnoplastica",
"option3": "5 | 76,5 | 52"
},
{
"weight": 0.58,
"price": 22.5916,
"barcode": "8432393275895",
"sku": "8333015",
"grams": 580.0,
"inventory_management": "shopify",
"inventory_policy": "deny",
"fulfillment_service": "manual",
"requires_shipping": true,
"taxable": true,
"weight_unit": "kg",
"option1": "1 UN | Modulo 400 mm",
"option2": "Plastica bianca | Tecnoplastica",
"option3": "5 | 39,5 | 52"
},
{
"weight": 0.93,
"price": 28.685499999999998,
"barcode": "8432393272504",
"sku": "8333423",
"grams": 930.0,
"inventory_management": "shopify",
"inventory_policy": "deny",
"fulfillment_service": "manual",
"requires_shipping": true,
"taxable": true,
"weight_unit": "kg",
"option1": "1 UN | Modulo 700 mm",
"option2": "Plastica grigio antracite | Tecnoplastica",
"option3": "5 | 66,5 | 52"
},
{
"weight": 0.613,
"price": 23.3602,
"barcode": "8432393272474",
"sku": "8333123",
"grams": 613.0,
"inventory_management": "shopify",
"inventory_policy": "deny",
"fulfillment_service": "manual",
"requires_shipping": true,
"taxable": true,
"weight_unit": "kg",
"option1": "1 UN | Modulo 450 mm",
"option2": "Plastica grigio antracite | Tecnoplastica",
"option3": "5 | 39,5 | 52"
},
{
"weight": 1.19,
"price": 31.4305,
"barcode": "8432393272528",
"sku": "8333623",
"grams": 1190.0,
"inventory_management": "shopify",
"inventory_policy": "deny",
"fulfillment_service": "manual",
"requires_shipping": true,
"taxable": true,
"weight_unit": "kg",
"option1": "1 UN | Modulo 900 mm",
"option2": "Plastica grigio antracite | Tecnoplastica",
"option3": "5 | 86,5 | 52"
},
{
"weight": 0.822,
"price": 25.7575,
"barcode": "8432393272498",
"sku": "8333323",
"grams": 822.0,
"inventory_management": "shopify",
"inventory_policy": "deny",
"fulfillment_service": "manual",
"requires_shipping": true,
"taxable": true,
"weight_unit": "kg",
"option1": "1 UN | Modulo 600 mm",
"option2": "Plastica grigio antracite | Tecnoplastica",
"option3": "5 | 57,5 | 52"
},
{
"weight": 0.58,
"price": 22.792900000000003,
"barcode": "8432393272467",
"sku": "8333023",
"grams": 580.0,
"inventory_management": "shopify",
"inventory_policy": "deny",
"fulfillment_service": "manual",
"requires_shipping": true,
"taxable": true,
"weight_unit": "kg",
"option1": "1 UN | Modulo 400 mm",
"option2": "Plastica grigio antracite | Tecnoplastica",
"option3": "5 | 39,5 | 52"
},
{
"weight": 1.07,
"price": 29.1064,
"barcode": "8432393272511",
"sku": "8333523",
"grams": 1070.0,
"inventory_management": "shopify",
"inventory_policy": "deny",
"fulfillment_service": "manual",
"requires_shipping": true,
"taxable": true,
"weight_unit": "kg",
"option1": "1 UN | Modulo 800 mm",
"option2": "Plastica grigio antracite | Tecnoplastica",
"option3": "5 | 76,5 | 52"
},
{
"weight": 0.647,
"price": 24.567999999999998,
"barcode": "8432393272481",
"sku": "8333223",
"grams": 647.0,
"inventory_management": "shopify",
"inventory_policy": "deny",
"fulfillment_service": "manual",
"requires_shipping": true,
"taxable": true,
"weight_unit": "kg",
"option1": "1 UN | Modulo 500 mm",
"option2": "Plastica grigio antracite | Tecnoplastica",
"option3": "5 | 44,5 | 52"
}
],
"options": [
{
"name": "Formato | Dimensione",
"values": [
"1 UN | Modulo 400 mm",
"1 UN | Modulo 1.000 mm",
"1 UN | Modulo 800 mm",
"1 UN | Modulo 700 mm",
"1 UN | Modulo 600 mm",
"1 UN | Modulo 900 mm",
"1 UN | Modulo 500 mm",
"1 UN | Modulo 450 mm"
]
},
{
"name": "Colore | Materiale",
"values": [
"Plastica grigio antracite | Tecnoplastica",
"Plastica bianca | Tecnoplastica"
]
},
{
"name": "Altezza | Larghezza | Lunghezza",
"values": [
"5 | 39,5 | 52",
"5 | 44,5 | 52",
"5 | 96,5 | 52",
"5 | 66,5 | 52",
"5 | 86,5 | 52",
"5 | 76,5 | 52",
"5 | 57,5 | 52"
]
}
]
}
The json syntax is OK, I checked online.
If I update the product without images is ok.
I don't know what is wrong.
The complete error message:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/pyactiveresource/connection.py", line 286, in _open
http_response = self._handle_error(self._urlopen(request))
File "/usr/local/lib/python3.7/site-packages/pyactiveresource/connection.py", line 316, in _urlopen
return urllib.request.urlopen(request, timeout=self.timeout)
File "/usr/local/lib/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/lib/python3.7/urllib/request.py", line 531, in open
response = meth(req, response)
File "/usr/local/lib/python3.7/urllib/request.py", line 641, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/local/lib/python3.7/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/usr/local/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/usr/local/lib/python3.7/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 502: Bad Gateway
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "webmaster_tool.py", line 65, in <module>
execute()
File "/home/user/execute.py", line 36, in execute
emuca()
File "/home/user/emuca.py", line 316, in emuca
product.save()
File "/home/user/.local/lib/python3.7/site-packages/shopify/resources/product.py", line 45, in save
return super(ShopifyResource, self).save()
File "/usr/local/lib/python3.7/site-packages/pyactiveresource/activeresource.py", line 839, in save
data=self.encode())
File "/usr/local/lib/python3.7/site-packages/pyactiveresource/connection.py", line 375, in post
return self._open('POST', path, headers=headers, data=data)
File "/home/user/.local/lib/python3.7/site-packages/shopify/base.py", line 27, in _open
self.response = super(ShopifyConnection, self)._open(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/pyactiveresource/connection.py", line 288, in _open
http_response = self._handle_error(err)
File "/usr/local/lib/python3.7/site-packages/pyactiveresource/connection.py", line 429, in _handle_error
raise ServerError(err)
pyactiveresource.connection.ServerError: Bad Gateway
Hello @Antonio84 ,
Are you receiving any kind of response headers with a request ID when performing this action? If so, I can check the logs to see what specifically might be happening here.
Best,
Graham
To learn more visit the Shopify Help Center or the Community Blog.
Hello thanks for sharing, right now I am experiencing the same error, were you able to solve the problem and if so how?