我已经尝试过Node.js 快速入门演示,并且能够在开发中使用 JWT Grant 来授予同意。最近我申请了 Go-Live,现在我的应用程序集成在 Docusign 中。我还配置了实时应用程序设置。如何使用生产配置通过快速入门示例测试 JWT-Grant?它不断向我抛出这个错误,并且关于上线后流程的支持很少。
Error: Target account true not found!
at _DsJwtAuth._getUserInfo [as getUserInfo] (D:\HyperloopCMT-Docusign-node.js\lib\DSJwtAuth.js:138:15)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async log (D:\HyperloopCMT-Docusign-node.js\lib\DSJwtAuth.js:181:22)
(node:22912) UnhandledPromiseRejectionWarning: Error: Target account true not found!
at _DsJwtAuth._getUserInfo [as getUserInfo] (D:\HyperloopCMT-Docusign-node.js\lib\DSJwtAuth.js:138:15)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async log (D:\HyperloopCMT-Docusign-node.js\lib\DSJwtAuth.js:181:22)
(Use `node --trace-warnings ...` to show where the warning was created)
这是 appSettings.json 的外观:
{
"dsClientId": "CID",
"dsClientSecret": "PROD_INT_SECRET",
"dsJWTClientId": "CID",
"privateKeyLocation": "config/private.key",
"impersonatedUserGuid": "APP_USERNAME_FROM_PRODUCTION",
"signerEmail": "abc@ex.com",
"signerName": "XXXX",
"appUrl": "http://localhost:5000",
"production": true,
"debug": true,
"sessionSecret": "12345",
"allowSilentAuthentication": true,
"targetAccountId": true,
}