Comments (2)
This is because of a bug in the SDK that causes deadlock (ConfigureAwait isn't called all the way down to await HttpClient.SendAsync(httpMessage) in BaseRestClient.MakeRequest, which captures your asp.net mvc synchronization context)
You can workaround it by offloading wait for task completion to the thread pool:
var creditSession = Task.Run(() => client.Payment.CreateCreditSession(paymentSession)).GetAwaiter().GetResult()
from kco_rest_dotnet.
Hi Alex!
This seems to solve the problem!
Thanks a million!
from kco_rest_dotnet.
Related Issues (20)
- Code hangs on payment execution. HOT 1
- Handle card payment HOT 1
- shipping_method "" cannot be serialized into Enum OrderManagementShippingMethod
- Async/Await issue HOT 5
- Typo in endpoint for "Release remaining authorization" HOT 2
- The wrong type for "refunds" is used in the "OrderManagementOrder" class HOT 3
- Issue installing the Klarna nuget package HOT 1
- Typo in SettlementsGetAllPayoutsResponse.cs "Paginatinon" HOT 2
- Allow usage of WebProxy in HttpClient HOT 2
- Typo in Klarna.Rest/Klarna.Rest.Core/Commuication namespace HOT 2
- HostedPaymentPage: DistributeLinkToSession does not send body payout
- HostedPaymentPageSessionStatus model is not aligned with API
- Missing Payment Method categories property in HostedPaymentPageOptions HOT 1
- GetSessionStatus points to the wrong url
- Hosted Payment Pages: Add support of Session disabling HOT 1
- Promo codes (custom payment methods) contract issue HOT 1
- Discrepancy between SDK models and API models HOT 2
- Can Not Install On .NET Framework 4.8 HOT 1
- Klarna examples using deprecated code HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kco_rest_dotnet.