我们一直在使用 REST API 通过 Microsoft Flow 创建 DocuSign 信封。今天,我们开始收到错误消息“ Http 请求失败:超时。”。 Microsoft Flow 重试了 4 次,但响应相同。超时似乎是 2 分钟。
查看 DocuSign 日志,看起来它在超时之前只收到了一些第一个文件。 BadRequest 日志表明正文格式不正确。我可以看到只有第一个文档的某些 Base64 编码出现在日志中。
然后,我尝试通过邮递员提交相同的数据。它在 57 秒内成功。是否有任何理由导致 Microsoft Flow(或其他系统)的提交速度如此之慢?
请求:
-
URI:https://demo.docusign.net/restapi/v2/accounts/xxxxxx/envelopes
-
方法:开机自检
-
X-Docusign-Authentication :(用户名,密码,集成商密钥)
-
Content-Type:application/json
-
身体:
{
"documents": [
{
"documentId": "538",
"name": "My Document Name",
"fileExtension": ".docx",
"documentBase64": "xxxxx",
"transformPdfFields": true
},
{
"documentId": "537",
"name": "Another Document",
"fileExtension": ".docx",
"documentBase64": "xxxx",
"transformPdfFields": true
}
],
"status": "Sent",
"emailSubject": "xxxx",
"recipients": {
"signers": [
{
"recipientId": "1",
"clientUserId": "1002457",
"email": "lmckenzie@petstock.com.au",
"name": " Ford",
".5routingOrder": "1",
"tabs": {...
}
}
]
},
"eventNotification": {
"includeDocumentFields": "false",
"envelopeEvents": [
{
"envelopeEventStatusCode": "Completed"
},
{
"envelopeEventStatusCode": "Declined"
},
{
"envelopeEventStatusCode": "Voided"
},
{
"envelopeEventStatusCode": "Sent"
}
],
"url": "https://xxx",
"requireAcknowledgment": "false",
"includeSenderAccountAsCustomField": "true",
"loggingEnabled": "true",
"includeDocuments": "false",
"signMessageWithX509Cert": "true"
}
}
回应:
Duration: 2m
Start time: 2018-05-23T05:01:02.2710043Z
End time: 2018-05-23T05:03:02.384625Z
Status: BadRequest
Client request ID: c3cef685-7c70-41d0-8cbd-67237b56a7f1
Error: {
"error": {
"code": "BadRequest",
"message": "Http request failed: the timeout was reached."
}
}