我正在使用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