Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Sonal-Karle opened this issue Jun 22, 2022 · 2 comments
Open

Comments

@Sonal-Karle
Copy link

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
Copy link
Contributor

tmenier commented Aug 29, 2022

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

@brendonofficial
Copy link
Contributor

@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();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants