We are receiving the following error when attempting to upload a product with attached request.
It seems that there is a character limit of 164 characters in this meta-field. If that is true, we would be unable to upload the spec tables html etc as a metafield and would need another approach. Also, I am really not seeing this limit documented anywhere.
Error message
400 {“error”:“783: unexpected token at ‘{"product":{"title":"BERTAZZONIt_HERT486GDFSNET_48 inch Dual Fuel Range, 6 Brass Burners and Griddle, Electric Self Clean Oven Nero Matt","product_type":"GAS RANGES","vendor":"BERTAZZONIt","metafields_global_description_tag":"BERTAZZONIt_HERT486GDFSNET_48 inch Dual Fuel Range, 6 Brass Burners and Griddle, Electric Self Clean Oven Nero Matt_PROFESSIONAL GAS RANGE","metafields_global_title_tag":"BERTAZZONIt_HERT486GDFSNET_PROFESSIONAL GAS RANGE|Town Appliance","body_html":"\u003cstrong\u003eShlomo TEST PRODUCT 8-13-2020!\u003c/strong\u003e","metafields":[{"key":"Other","value":"O","namespace":"Color","value_type":"string"},{"key":"Stainless Steel","value":"S","namespace":"Color","value_type":"string"},{"key":"dimensions","value":"48\" 34 3/4 27 3/8","namespace":"Dimension","value_type":"string"},{"key":"spec_table_html","value":"\u003ctable class=‘inline_sd_table’\u003e\u003ctr class=‘inline_sd_cell_row’\u003e \u003ctd class=‘inline_sd_even_cell’\u003e\u003cb\u003eSize\u003c/b\u003e\u003c/td\u003e \u003ctd class=‘inline_sd_even_cell’\u003e48 in\u003c/td","namespace":"specification","value_type":"string"},{"key":"map_price","description":"map_price","value":"12599.0","namespace":"map_price","value_type":"string"},{"key":"msrp","description":"msrp","value":"16380.0","namespace":"msrp","value_type":"string"},{"key":"barcode","description":"barcode","value":"$9,828","namespace":"barcode","value_type":"string"},{"key":"in_cart_price","description":"in_cart_price","value":"12599.0","namespace":"in_cart_price","value_type":"string"},{"key":"Bertazzoni Suite Deals Rebate","value":"Save on qualifying Bertazzoni Ventilation and Dishwashers with purchase of qualifying Bertazzoni Kitchen Appliances.","namespace":"TownApplianceAPI","value_type":"string"},{"key":"Bertazzoni Range Promo","value":"Receive up to a $600 Instant Rebate with purchase of a qualifying Bertazzoni range.","namespace":"TownApplianceAPI","value_type":"string"}],"variants":[{"sku": "HERT486GDFSNET","compare_at_price": "15000","barcode": "","weight": 0.00,"price": 10000}],"tags":"BER,GR,GASPRO"}’”}
request:
{
“product”:{
“title”:“BERTAZZONIt_HERT486GDFSNET_48 inch Dual Fuel Range, 6 Brass Burners and Griddle, Electric Self Clean Oven Nero Matt”,
“product_type”:“GAS RANGES”,
“vendor”:“BERTAZZONIt”,
“metafields_global_description_tag”:“BERTAZZONIt_HERT486GDFSNET_48 inch Dual Fuel Range, 6 Brass Burners and Griddle, Electric Self Clean Oven Nero Matt_PROFESSIONAL GAS RANGE”,
“metafields_global_title_tag”:“BERTAZZONIt_HERT486GDFSNET_PROFESSIONAL GAS RANGE|Town Appliance”,
“body_html”:“Shlomo TEST PRODUCT 8-13-2020!”,
“metafields”:[
{
“key”:“Other”,
“value”:“O”,
“namespace”:“Color”,
“value_type”:“string”
},
{
“key”:“Stainless Steel”,
“value”:“S”,
“namespace”:“Color”,
“value_type”:“string”
},
{
“key”:“dimensions”,
“value”:“48" 34 3/4 27 3/8”,
“namespace”:“Dimension”,
“value_type”:“string”
},
{
“key”:“spec_table_html”,
“value”:“
| Size | 48 in</td”, “namespace”:“specification”, “value_type”:“string” }, { “key”:“map_price”, “description”:“map_price”, “value”:“12599.0”, “namespace”:“map_price”, “value_type”:“string” }, { “key”:“msrp”, “description”:“msrp”, “value”:“16380.0”, “namespace”:“msrp”, “value_type”:“string” }, { “key”:“barcode”, “description”:“barcode”, “value”:“$9,828”, “namespace”:“barcode”, “value_type”:“string” }, { “key”:“in_cart_price”, “description”:“in_cart_price”, “value”:“12599.0”, “namespace”:“in_cart_price”, “value_type”:“string” }, { “key”:“Bertazzoni Suite Deals Rebate”, “value”:“Save on qualifying Bertazzoni Ventilation and Dishwashers with purchase of qualifying Bertazzoni Kitchen Appliances.”, “namespace”:“TownApplianceAPI”, “value_type”:“string” }, { “key”:“Bertazzoni Range Promo”, “value”:“Receive up to a $600 Instant Rebate with purchase of a qualifying Bertazzoni range.”, “namespace”:“TownApplianceAPI”, “value_type”:“string” } ], “variants”:[ { “sku”:“HERT486GDFSNET”, “compare_at_price”:“15000”, “barcode”:“”, “weight”:0.00, “price”:10000 } ], “tags”:“BER,GR,GASPRO” } } |

