node.js - Docusign Webhooks:错误 - 远程服务器返回错误:(413)请求实体太大
问题描述
我正在使用 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
推荐阅读
- flutter - 连接到 Flutter DevTools 的 VM 服务时出错
- r - 在给定索引的情况下提取 R 数据框的元素
- php - 如何以美元获得当前比特币汇率
- c - 在C中查找BST中特定节点的深度
- python-3.x - 为什么这两个类在python 3.x中执行,它们只是定义了?
- android - Flutter HttpServer 无法从局域网内其他电脑访问
- google-apps-script - 尝试删除从谷歌表单或应用表提交时作为表达式前缀的严重字符“`”
- sql - 如何在sql中添加值?- PostgreSQL
- swift - 如何在 SwiftUI 中停止快速移动视图的频闪
- javascript - 如何在从场景中删除的所有对象(仅限模型)的情况下重新启动 webxr 会话