Closed dandros closed 1 year ago
Hello there,
Before we dive in, I need some clarification. Please answer the questions below:
Thanks, Leandro
Please find below answers:
I guess the following GetAwaiter() doesn't work in ASP.NET Web Forms.
return CreateEnvelopeAsyncWithHttpInfo(accountId, envelopeDefinition, options) .ConfigureAwait(false) .GetAwaiter() .GetResult();
Special considerations should be taken to use Asynchronous methods in ASP.NET Web Forms. https://learn.microsoft.com/en-us/aspnet/web-forms/overview/performance-and-caching/using-asynchronous-methods-in-aspnet-45
Best regards, Dimitri
Hello there, could you provide a small code sample that replicates your issue?
Set your ClientId and ImpersonatedUserID in web.config Put private key file and lorem.pdf in C:\Temp_files
Perhaps the same issue: calling TemplatesApi.Get returns an EnvelopeTemplate in DocuSign.eSign 6.0, but hangs forever in 6.1+ and freezes the UI.
This works fine in a console application, but not in Windows Forms.
Sample code:
try
{
var apiClient = GetRestApiClient();
var templatesApi = new TemplatesApi(apiClient);
template = templatesApi.Get(accountId, templateId);
}
catch (ApiException ex)
{
}
catch (Exception ex)
{
return ex.Message;
}
No errors are not caught. Fiddler shows a successful 200 and response with the template JSON.
Just wanted to provide a quick update on this issue - the team was able to re-produce the issue and is currently looking into a fix.
We just ran into the same issue with .NET 4.8 synchronous methods and any version of the client over 6.0.
Just wanted to provide a quick update on this issue - the team was able to re-produce the issue and is currently looking into a fix.
@kenharris any eta on a fix?
@Welchen I'm not aware of a specific ETA just yet. I'll see what I can find out and report back when I have something more specific.
A new update was just released moments ago - v6.4.1 - which should have a fix to address this issue.
I'm going to close this for now. Feel free to re-open if the issue persists, or just open a new issue.
EnvelopesApi sync methods dead lock net48 WebForms. Issue since 6.1 version.
It looks like GetAwaiter doesn't work well in WebForms.
I confirm that latest console code example works perfectly. However when in WebForms, then EnvelopesApi sync methods are dead on arrival.
I didn't test WebForms Async tricks with EnvelopesApi async methods.