WooCommerce.NET icon indicating copy to clipboard operation
WooCommerce.NET copied to clipboard

403 error

Open Marvinvdl opened this issue 4 years ago • 3 comments

Hi, I'm getting this error

System.AggregateException: 'One or more errors occurred. (

403 Forbidden

403 Forbidden

)'

and this is my code :

RestAPI rest = new RestAPI("http://www.sweetdigitalagency.com/wp-json/wc/v3/", "ck_", "cs_");

        WCObject wc = new WCObject(rest);

        //Get all products
        var products =  wc.Product.GetAll().Result;

Can you give me some advice?

Thanks

Marvinvdl avatar Nov 21 '21 14:11 Marvinvdl

Please check your hosting environment, this could be a permission issue.

XiaoFaye avatar Nov 23 '21 01:11 XiaoFaye

Hi Marvinvdl, I am facing the same issue, Was you able to fix it?

all the best!

JhonatanRamirezS avatar Jan 06 '22 17:01 JhonatanRamirezS

Hi Marvinvdl, I am facing the same issue, Was you able to fix it?

all the best!

Hi JHonatanRamirezS,

Sorry for the late replay. I had a couple of times an error one was becouse the host didn't accept connections from outside. The other one's was because it was on a subdomain and woocommerce installation was not completed.

If you send your code I can look at it for you.

Good luck,

Marvin

Marvinvdl avatar Jan 10 '22 11:01 Marvinvdl