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


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.

yoni349 2 months 0 Answers 4 views 0

Leave an answer