How to solve `Error getting remote image` in woocommerce rest api script?

Question

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.

0
yoni349 2 months 0 Answers 4 views 0

Leave an answer