Aug 05, 2018 05:42 AM|Wenushka|LINK
If there is blocking call inside asynchronous call / path, it could cause deadlock if the both the threads waiting for each other to complete (SynchronizationContext).
This is what happened in your asp.net mvc application.
There is a blocking (sync) call in your method,
object productsData = nopApiClient.Get(jsonUrl);
Fix this, by calling the asynchronous version of the method if available. eg:
await nopApiClient.GetAsync(jsonUrl) ;
Note : Fix the both two places where you called blocking Get method inside the method.
Further go through the followings,