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

Invalid URI: The Authority/Host could not be parsed.'

Open BenParr64 opened this issue 4 years ago • 0 comments

`
    static void Main(string[] args)
                {
                    //Woo Commerce
                    getProducts();
                    
                }

    private static async void getProducts()
    {
        RestAPI rest = new RestAPI("http:/kegthat.com/wp-json/wc/v3/", "asdsdadasdasdasdasd", "asdasdadasdasd");
        WCObject wc = new WCObject(rest);
        rest.Debug = true;
        var products = await wc.Product.GetAll();
        Console.WriteLine(products);

        

    }

I receive the below error:

System.Exception: 'Expecting state 'Element'.. Encountered 'Text' with name '', namespace ''.

Invalid URI: The Authority/Host could not be parsed.'

Any ideas?

BenParr64 avatar Sep 24 '21 06:09 BenParr64