【问题标题】:Handshake error while connecting to Google Vision API using Python使用 Python 连接到 Google Vision API 时出现握手错误
【发布时间】:2023-04-02 21:20:01
【问题描述】:

我正在使用以下代码连接到 Google Vision API。我有来自 Google Vision 的 JSON。

代码给了我下面的错误。不知道为什么.. < TSI_PROTOCOL_FAILURE >
请提出建议。它在 Windows Server 机器上运行良好,但在我的 Windows 7 机器上却不行。

以下是代码和错误详情。

enter code here

Error details below.
E0410 12:18:28.854000000 17616 src/core/tsi/ssl_transport_security.cc:1239] Handshake failed with fatal error SSL_ERROR_SSL: error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED.



grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with:
    status = StatusCode.UNAVAILABLE
    details = "Connect Failed"
    debug_error_string = "{"created":"@1554878916.008000000","description":"Failed to create subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":2267,"referenced_errors":[{"created":"@1554878916.008000000","description":"Pick Cancelled","file":"src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":242,"referenced_errors":[{"created":"@1554878916.008000000","description":"Connect Failed","file":"src/core/ext/filters/client_channel/subchannel.cc","file_line":962,"grpc_status":14,"referenced_errors":[{"created":"@1554878916.008000000","description":"Handshake failed","file":"src/core/lib/security/transport/security_handshaker.cc","file_line":291,"tsi_code":10,"tsi_error":"TSI_PROTOCOL_FAILURE"}]}]}]}"

【问题讨论】:

    标签:
    python-3.x
    google-vision
    sslerrorhandler