【问题标题】:Getting error (invalid_grant) when accessing docusign访问docusign时出现错误(invalid_grant)
【发布时间】:2019-09-27 03:03:09
【问题描述】:

在成功执行上线步骤后,我们正在执行上线后步骤,并在尝试访问 docusign 中的文档时收到此完整堆栈错误。

HTTP response body: b'{"error":"invalid_grant"}2019-09-23 19:49:04,021 wct.controllers.docusign.docusign authenticate ERROR *******GIVE CONSENT URL:https://account-d.docusign.com/oauth/auth?response_type=code&client_id=[[redacted]]&scope=signature%20impersonation&redirect_uri=https%3A%2F%2Ftestfirstuplending.com%2Fdocutest%2Fdocusign_callback.html
2019-09-23 19:49:04,021 wct.controllers.docusign.docusign authenticate ERROR https://account-d.docusign.com/oauth/auth?response_type=code&client_id=[[redacted]]&scope=signature%20impersonation&redirect_uri=https%3A%2F%2Ftestfirstuplending.com%2Fdocutest%2Fdocusign_callback.html
2019-09-23 19:49:06,273 django.request handle_uncaught_exception ERROR Internal Server Error: /wct/docusign/createSignDocument/
Traceback (most recent call last):
File "/Users/mack/dev/wct/wctenv/wctenv/lib/python3.7/site-packages/django/core/handlers/exception.py", line 35, in inner
response = get_response(request)
File "/Users/mack/dev/wct/wctenv/wctenv/lib/python3.7/site-packages/django/core/handlers/base.py", line 128, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/Users/mack/dev/wct/wctenv/wctenv/lib/python3.7/site-packages/django/core/handlers/base.py", line 126, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/contextlib.py", line 74, in inner
return func(*args, **kwds)
File "/Users/mack/dev/wct/wctenv/wctenv/lib/python3.7/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)

【问题讨论】:

    标签: docusignapi


    【解决方案1】:

    Invalid Grant 可以指一些可能的错误状态。这里有几件事要检查:

    • 您的 API 客户端是否指向生产环境?该同意 URI 是 account-d,用于演示
    • 您是否已同意生产? Demo 和 Prod 需要单独的同意实例
    • 您是否在 JWT 断言中使用了有效的生产用户 ID?
    • 您是否生成了新的 RSA 密钥对? Demo 和 Prod 使用单独的 RSA 密钥。

    【讨论】:

      【解决方案2】:

      根据您的问题:

      ERROR https://account-d.docusign.com/oauth/auth?response_type=cod...
      

      注意 url 有 -d 不是生产。没有它的生产将是这样的:

      https://account.docusign.com/oauth/auth?response_type=cod...
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2018-07-11
        • 2015-12-08
        • 1970-01-01
        • 1970-01-01
        • 2021-09-11
        • 2021-11-07
        • 2015-09-04
        • 2017-03-06
        相关资源
        最近更新 更多