DocuSign-随机UNABLE_TO_CONVERT_DOCUMENT错误 [英] DocuSign - Random UNABLE_TO_CONVERT_DOCUMENT error

查看:64
本文介绍了DocuSign-随机UNABLE_TO_CONVERT_DOCUMENT错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用端点 https://au.docusign的Docusign create envelop API.net/restapi/v2/accounts/ {AccountID}/信封.该API调用在大多数情况下都有效,但是偶尔我会收到一条错误消息,指出系统无法将该文档转换为PDF.我正在提交随机失败的docx类型文档(例如一天一次).重新提交后,相同的文件提交将没有任何问题.

I am using Docusign create envelop API using the endpoint https://au.docusign.net/restapi/v2/accounts/{AccountID}/envelopes. The API call works on most instance but occasionally I am receiving an error stating that the System was unable to convert this document to a PDF. I am submitting a docx type document which is failing randomly(say once in a day). On re submission the same document submission works without any issue.

为了理解问题,我尝试启用DocuSign登录登录.由于日志在任何给定时间最多只能保存50个条目,因此我清除了日志以确保在发生故障时可以随时捕获故障.

In order to understand the problem I tried enabling logging on DocuSign login. Since the log can only keep upto 50 entries at any given time I am clearing the log to ensure I am ready to capture the failure when it happens.

收到实际错误消息:

{
  "errorCode": "UNABLE_TO_CONVERT_DOCUMENT",
  "message": "System was unable to convert this document to a PDF. Unable to convert Document(Document Name.docx) to a PDF. Error: UserId:{GUID} IPAddress:XX.XX.XXX.XXX Source:ApiRESTv2:Failed to convert FileType: docx"
}

现在,我正在尝试通过DocuSign UI下载日志文件,并且在尝试这样做时收到不断超时的问题.有人知道从DocuSign提取的任何程序日志文件吗?以前有人做过吗?

Now I am trying to download the log file via DocuSign UI and I am receiving constant timeout issue while trying to do so. Does anyone know about any programmatic log file extract from DocuSign? Anyone done this previously?

非常感谢您提供有关错误解决方案或帮助下载错误日志的任何指针.请帮助

Any pointers on the error resolution or help downloading the error log is much appreciated. Please help

推荐答案

默认情况下,DocuSign平台接受PDF文档,因此在通过API发送时,您只需要包括PDF的文档字节.但是,对于任何其他文件格式,您需要将文档对象上的 fileExtension 属性设置为要发送的文件类型.

The DocuSign platform by default accepts PDF documents so when sending through the API you simply need to include the document bytes for PDFs. However for any other file format you need to set the fileExtension property on the document object to the file type you are sending.

例如,如果使用开源DocuSign SDK之一,则使用setFileExtension()setter方法设置扩展名:

For example if using one of the open source DocuSign SDKs use the setFileExtension() setter method to set the extension:

document.setFileExtension("docx");

或者,如果直接调用REST API(即不使用SDK),则将 fileExtension 属性设置为"docx":

Or if you are calling the REST API directly (ie not using an SDK) then set the fileExtension property to "docx":

{
    ...
    "fileExtension": "docx",
    ....
}

如果在此之后仍然收到错误,那么我将开始使用其他文档进行测试,并确认您使用的文档没有任何损坏,并且格式正确.

If you still receive the error after this then you I would start testing with a different document and confirm the document you are using not corrupt in any way and if properly formatted.

这篇关于DocuSign-随机UNABLE_TO_CONVERT_DOCUMENT错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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