Docusign eSign:CreateEnvelope请求超时 [英] Docusign eSign: CreateEnvelope requests timing out

查看:97
本文介绍了Docusign eSign:CreateEnvelope请求超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们最近在发送某些Docusign信封时遇到了问题,特别是那些大文件。

We've been having issues sending certain Docusign envelopes lately, specifically those with large file sizes.

我们遇到的错误是:

Error calling CreateEnvelope: The operation has timed out

The request was aborted: The request was canceled.

在任何一种情况下,都没有内部异常,也没有任何其他信息。

No inner exception with any additional information in either case.

这些错误仅发生在我们的生产服务器上;在我的本地开发计算机上,一切正常,因此我只能假设这是连接问题;在某事超时之前,根本没有足够的时间通过可用的连接发送提供的数据。我想知道的是,什么东西超时了?这些错误是来自我还是Docusign的错误?如果是前者,有什么办法可以增加超时时间?我将HTTP执行超时设置为300秒:

These errors only occur on our production server; on my local development machine everything works fine, so I can only assume that this is a connectivity issue; that there simply isn't enough time to send the supplied data over the available connection before something times out. What I would like to know is, what is the something that's timing out? Are these errors coming from my end, or Docusign's? If the former, is there any way to increase the timeout? I've got my HTTP execution timeout set to 300 seconds:

<httpRuntime maxRequestLength="30000" requestValidationMode="4.0" executionTimeout="300" targetFramework="4.5" />

...但是这似乎并没有影响任何东西,它似乎总是在默认1分钟50秒。

... but that doesn't seem to affect anything, it always seems to time out at the default 1 minute 50 seconds.

我还能做些什么来防止这些请求超时吗?

Is there anything more I can do to prevent these requests from timing out?

谢谢

亚当

推荐答案

我们的问题已解决。超时确实是由我们端的某些原因引起的;发送前可以对EnvelopesApi对象设置一个超时属性;声明时也可以将其传递给构造函数。因此,我们的解决方法很简单:

Our issue has been resolved. The timeouts were indeed being caused by something on our end; there is a "Timeout" property which can be set against the EnvelopesApi object before sending; it can also be passed into the constructor when declared. So our fix was as simple as:

EnvelopesApi envelopesApi = new EnvelopesApi();
envelopesApi.Configuration.Timeout = DocusignTimeout;

我们问题的症结在于Timeout属性未在较早版本的eSign中公开。我们在本周早些时候已升级到2.1.0(当前版本),但一定不能采取任何措施,因为元数据仍显示15.4.0.0版的DocuSign.eSign.Client.Configuration类。从NuGet卸载重新安装的eSign和RestSharp软件包会为我们提供此类的正确版本,并使我们能够设置自己的超时。

The crux of our issue was that the Timeout property was not exposed in older versions of eSign. We had upgraded to 2.1.0 (the current version) earlier this week, but something must not have taken, as the metadata still showed our DocuSign.eSign.Client.Configuration class at version 15.4.0.0. Uninstalling the reinstalling eSign and RestSharp packages from NuGet gave us the correct version of this class, and enabled us to set our own timeout.

希望这会有所帮助!

这篇关于Docusign eSign:CreateEnvelope请求超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆