ordercloud-api / ordercloud-dotnet-sdk

The official .NET SDK for the OrderCloud eCommerce platform
MIT License
15 stars 14 forks source link

Not returning ordercloud SDK product list in ASP.net web application #85

Open Sonal-Karle opened 2 years ago

Sonal-Karle commented 2 years ago

Hey, I tried code to retrieve products by using console application framework 4.8 I attached the code and version of order cloud I used but same code I implement in Asp .NET web application framework 4.8 not able to retrieve the products

Code : ordercloudConsoleApplication

Package Info: PackageversionOrderCloud

tmenier commented 2 years ago

I apologize that that issue slipped through the cracks. Were you able to resolve it?

brendonofficial commented 1 year ago

@Sonal-Karle see "Do I have to use async/await when calling endpoints?" in the FAQ section of the README - mentions not to use .Result with the async calls.

Try with the below and see if it resolves your issue: var products = await client.Products.ListAsync();