Yuri-Lima / woocommerce-rest-api-ts-lib

This is some improvements for the oficial WooCommerce repo. https://github.com/woocommerce/woocommerce-rest-api-js-lib I hope they merge or accept it as new repo. soon. Please few free to contact me.
MIT License
28 stars 8 forks source link

woocommerce_rest_product_exists #2

Closed PMLS3 closed 1 year ago

PMLS3 commented 1 year ago

thank you for the new library.

I am however getting the following when I want to add products to a brand new shop (categories, attributes and attributes terms uploaded fine)

{ 16:44:24 code: 'woocommerce_rest_product_exists', message: 'Cannot create existing product.', data: { status: 400 } }

Yuri-Lima commented 1 year ago

Hi, @PMLS3. Thanks.

Could y describe a bit more?

Message Error: OK Parts of the code related to the problem would be helpful also:

PMLS3 commented 1 year ago

Hi Yuri, seems like it was my problem. I sent more data than I should've (didn't clean data to woocommerce needed only). Error message just got me confused a bit. Thanks for coming