在docusign api中请求身份验证令牌时出现最大重试错误

2024-10-05 12:37:04 发布

您现在位置:Python中文网/ 问答频道 /正文

在沙箱模式下的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',))

Tags: https版本hosturlreturn错误模式connection
1条回答
网友
1楼 · 发布于 2024-10-05 12:37:04

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

你应该给https://account-d.docusign.com/oauth/token发帖子

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

您是否正在使用Python的OAuth授权代码授权库?我总是建议使用图书馆。请参阅我们的eg-03-python-auth-code-grant示例,它使用flask_oauthlib

相关问题 更多 >

    热门问题