使用 Plaid 的 Python 客户端库时出现问题
我正在遵循教程,但在使用时出现错误item_public_token_exchange。
exchange_request = ItemPublicTokenExchangeRequest(
public_token=plaid_token
)
exchange_response = CLIENT.item_public_token_exchange(exchange_request)
错误:
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='sandbox', port=80): Max retries exceeded with url: /item/public_token/exchange (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10f1493a0>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known'))
不确定发生了什么。
I'm following the tutorial, but I get an error when I use item_public_token_exchange.
exchange_request = ItemPublicTokenExchangeRequest(
public_token=plaid_token
)
exchange_response = CLIENT.item_public_token_exchange(exchange_request)
the error:
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='sandbox', port=80): Max retries exceeded with url: /item/public_token/exchange (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10f1493a0>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known'))
Not sure what is happening.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来问题在于您正在尝试连接到
sandbox
而不是sandbox.plaid.com
。确保您的主机设置为plaid.Environment.Sandbox
(或者sandbox.plaid.com
),而不仅仅是sandbox
。It looks like the problem is that you are trying to connect to
sandbox
instead ofsandbox.plaid.com
. Make sure you have your host set up asplaid.Environment.Sandbox
(or, alternatively,sandbox.plaid.com
) and not justsandbox
.