使用 Plaid 的 Python 客户端库时出现问题

发布于 2025-01-13 22:07:30 字数 850 浏览 4 评论 0原文

我正在遵循教程,但在使用时出现错误item_public_token_exchange

itempublic_tokenexchange

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.

itempublic_tokenexchange

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

弥枳 2025-01-20 22:07:30

看起来问题在于您正在尝试连接到 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 of sandbox.plaid.com. Make sure you have your host set up as plaid.Environment.Sandbox (or, alternatively, sandbox.plaid.com) and not just sandbox.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文