I'm using WooCommerce Rest API to upload images from another website using the img URLs. The script works well, but in 2 out of 10 websites I get this error:
{
code: 'woocommerce_product_image_upload_error',
message: 'Error getting remote image ?$pdpflexf2$&wid=440&hei=440. Error: Forbidden',
data: { status: 400 }
}
I don't think I'm getting block as I can download it easily manually.
I'm using WooCommerce Rest API to upload images from another website using the img URLs. The script works well, but in 2 out of 10 websites I get this error:
{
code: 'woocommerce_product_image_upload_error',
message: 'Error getting remote image https://nb.scene7.com/is/image/NB/mt10sb_nb_02_i?$pdpflexf2$&wid=440&hei=440. Error: Forbidden',
data: { status: 400 }
}
I don't think I'm getting block as I can download it easily manually.
API will not allow url with '?' as it can be dynamic and has security issue.