我有一个 docusign-sandbox 帐户。我正在尝试将 docusign 与我的应用程序集成,并在 java 中使用 JWT Grant 进行身份验证。我从中得到了一个示例代码https://github.com/docusign/eg-01-java-jwt
,它可以完美运行一个小时,然后 API 开始失败。
知道如何解决这个问题吗?
我收到以下错误
我已经尝试将令牌到期时间从 1 小时更改为其他较小的值(5 分钟、30 分钟)。即使这样,API 也会在一小时后开始出现故障。
https://github.com/docusign/eg-01-java-jwt
错误信息
{"timestamp":1560750467288,"status":500,"error":"Internal Server Error","message":"Error while requesting server, received a non successful HTTP code 401 with response Body: '{\r\n \"errorCode\": \"USER_AUTHENTICATION_FAILED\",\r\n \"message\": \"One or both of Username and Password are invalid. Invalid access token\"\r\n}'","path":"{path}"}