I will send you the new log file by e-mail in about 30 minutes...
OK, I will check the logs.
Can you reproduce the Problem in the new template?
If so, Please share the template with liming.ma@volosoft.com
I will download and test it.
Thanks.
hi
Please search where PaymentRequestRepository.UpdateAsync(paymentRequest) is called. Concurrency exception occurs here.
Please use try catch and set autoSave: true. You will get the exception stack.
try
{
var paymentRequest = await PaymentRequestRepository.GetAsync(paymentRequestId);
// update paymentRequest
await PaymentRequestRepository.UpdateAsync(paymentRequest, autoSave: true);
}
catch(e)
{
Logger.LogError("PaymentRequestRepository.UpdateAsync", e);
}
Thanks.
hi
You can test your code in a new template project and share the template source code.
Thanks.
hi
Can you share the test project so I can reproduce the problem locally?
liming.ma@volosoft.com
Thanks
ok, You can use 9.x to solve the problem.
But you can share the normal info and debug logs.
I will check if it contains any abnormal info.
Thanks.
hi
Please try to add lock for Task<PaymentRequestWithDetailsDto> CompleteAsync(string paymentGateway, Dictionary<string, string> parameters) of PaymentRequestAppService
Override it and use _webhookSemaphore
await _webhookSemaphore.WaitAsync();
CompleteAsync
_webhookSemaphore.Release();
Thanks
hi
Please try to set autoSave to turewhile updating the payment request.
await PaymentRequestRepository.UpdateAsync(paymentRequest, autoSave: true);
Then share the logs again.
Thanks.