Thread Starter
ciberg
(@ciberg)
@jessepearson You are a life saver.
The problem was in the POST URL, I was using:
/wc-api/v3/products/categories
And it worked fine with without images but failed with image.
Seeing your example I changed to /wp-json/wc/v3/products/categories and it worked with the image.
Thank you!
-
This reply was modified 5 years, 7 months ago by ciberg. Reason: clarify text
Thread Starter
ciberg
(@ciberg)
Hi, using Postman I get exactly the same error:
{
"errors": [
{
"code": "woocommerce_api_product_category_image_upload_error",
"message": "Erro ao obter imagem remota . Erro: O URL fornecido é inválido."
}
]
}
note: the message is in Portuguese and translates as “Error getting remote image – invalid URL”
The behaviour is the same with the ruby gem and with Postman.
The request I use is on the first post.
Please check the image to see if I am doing something wrong.
Postman print