mlof / Magento.RestClient

A modern client for the Magento 2.x REST api.
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Products return 204 (No content) #4

Closed JustinPooters closed 3 years ago

JustinPooters commented 3 years ago

When requesting products it returns no content in any type of request. Seems to be an issue in the RestClient.

JustinPooters commented 3 years ago

Notes: Magento 2 (Greensales) localhost Code:

var magentoClient = new MagentoClient("http://localhost:8888");
            var context = magentoClient.AuthenticateAsAdmin("justin", "sec32alah");

            var products = context.Search.Products(builder => builder.WithPage(1).WithPageSize(10)).Items;
            // <debug>
            Console.WriteLine("--");
            Console.WriteLine(products);
            Console.WriteLine("--");
            // </debug>

            return Ok(products);

hopefull you can find a way to solve this ^-^

JustinPooters commented 3 years ago

Screenshots added: https://imgur.com/a/GCL7b5l