libracore / WooCommerceConnector

Integration App for ERPNext to connect to WooCommerce
Other
83 stars 145 forks source link

Remote image link mal-formed #55

Open kossanah opened 2 years ago

kossanah commented 2 years ago

On ERPnext if the images of item is a link to external website url. Then while making API call to WP, the ERP domain name is appended to the external image link. This result to mal-formed image link. eg https://woocommercedomain.com/wp-json/wc/v3/products/12307: {'code': 'woocommerce_product_image_upload_error', 'message': "Error getting remote imagehttps://erpnextdomain.comhttps://remoteimage-res.cloudinary.com/w_auto,f_auto,fl_lossy,dpr_auto,q_auto/media/catalog/product/N/T/158298_1564659190.jpg. Error: cURL error 60: SSL: no alternative certificate subject name matches target host name 'erpnextdomain.comhttps'", 'data': {'status': 400}}

Muzzy73 commented 2 years ago

Always set images directly on Woo. Dont add image to ERPNext Item Master if not required.