[英]Docusign Webhooks: Error - The remote server returned an error: (413) Request Entity Too Large
我正在使用 Webhook 在完成后接收和下载信封的文档,但我从 Webhook 日志中收到以下错误:
Error: Exception in EnvelopeIntegration.RunIntegration: e6c44c18-aedf-424d-b6d5-19ad9db635e3 :: {{WEBHOOK_POST_URL}} :: Error - The remote server returned an error: (413) Request Entity Too Large.
我传递给信封的 EventNotification 如下:
const eventNotification = docusign.EventNotification.constructFromObject({
url: {{WEBHOOK_POST_URL}},
loggingEnabled: true,
requireAcknowledgment: true,
envelopeEvents: [
{
envelopeEventStatusCode: 'completed',
includeDocuments: true,
},
],
});
我怀疑这是因为接收到的文档太大,并且 webhook 发出的 POST 请求被服务器拒绝,但我不太确定解决这个问题的最佳方法是什么。 任何帮助是极大的赞赏!
原来,错误来自 Nginx。 我可以按照这里的答案来解决它: 错误:请求实体太大
值得注意的是,我将此行添加到 Nginx 配置文件中:
client_max_body_size 100M; #100mb
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.