使用Python连接到Google Vision API时出现握手错误

问题描述 投票:0回答:1

我使用下面的代码连接到Google Vision API。我有Google Vision的JSON。

代码给我以下错误。不确定为什么.. < TSI_PROTOCOL_FAILURE >请建议..它在Windows Server Machine上正常工作,但在我的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
1个回答
0
投票

可能你的Windows 7机器没有最新的根证书。 This建议Windows服务器有自动更新,但Windows 7没有。

另一个远程可能性是您的Windows 7计算机位于使用自己的TLS证书的代理后面,并且您的计算机上存在证书设置问题。

© www.soinside.com 2019 - 2024. All rights reserved.