【问题标题】:Max retry error while requesting auth token in docusign api在docusign api中请求身份验证令牌时最大重试错误
【发布时间】:2020-06-17 17:36:29
【问题描述】:

在 docusign 版本 3.1.0、python 版本 3.5 和 3.6 的沙盒模式下,我收到以下错误:

MaxRetryError at /return_url/8a2108d2-ee01-4c1a-ae53-47d305a92988/
HTTPSConnectionPool(host='https', port=443): 
  Max retries exceeded with url: //account-d.docusign.com/oauth/token
 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection
 object at 0x7fe15ca63438>: Failed to establish a new connection:
 [Errno -2] Name or service not known',))

【问题讨论】:

  • 这里没有足够的信息。你能提供你正在运行的代码吗?这似乎是一个网络问题,但信息很少,很难说太多

标签: python python-3.6 docusignapi python-3.5


【解决方案1】:

从错误消息来看,您似乎没有正确指定 URL。

您应该向https://account-d.docusign.com/oauth/token 发帖

看起来你接近那个但不正确。例如,为什么错误信息显示host='https' -- 主机应该是account-d.docusign.comhttps://account-d.docusign.com

您是否正在为 Python 使用 OAuth 授权代码授予库?我总是推荐使用图书馆。请参阅使用 flask_oauthlib 的 eg-03-python-auth-code-grant 示例。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-08-18
    • 2016-09-04
    • 2015-11-04
    • 2019-01-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多