ERROR | HTTPSConnectionPool(host='api.weixin.qq.com', port=443): Max retries exceeded with url: /cgi-bin/token?appid=wxba9a30b144d1fd16&grant_ type=client_credential&secret=6a0b75e631ebe43f6d60a551ad4ac3fe (Caused by ProxyError('Your proxy appears to only use HTTP and not HTTPS, try changing your proxy URL to be HTTP. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#https-proxy-error-http-proxy', SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong versio n number (_ssl.c:1076)'))))
时间: 2024-03-19 15:43:00 浏览: 14
根据你提供的信息,这个错误是因为你的代理服务器只支持 HTTP,而不支持 HTTPS。你可以尝试更改代理服务器的 URL 为 HTTP,或者使用其他支持 HTTPS 的代理服务器。具体的解决方法可以参考这个链接:https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#https-proxy-error-http-proxy
相关问题
HTTPSConnectionPool(host='www.hanlp.com', port=443): Max retries exceeded with url:
引用\[1\]和\[2\]中提到的错误是由于SSL连接问题导致的。SSL(Secure Sockets Layer)是一种用于保护网络通信安全的协议。当使用Python的requests库进行HTTPS请求时,可能会遇到SSL错误。这些错误通常是由于证书问题或协议违规引起的。
在引用\[3\]中提到的解决方法是通过禁用安全请求警告来解决这些问题。具体来说,通过导入`InsecureRequestWarning`并使用`disable_warnings`函数来禁用不安全请求警告。
对于你提到的问题,HTTPSConnectionPool(host='www.hanlp.com', port=443): Max retries exceeded with url:,这个错误可能是由于与hanlp.com的HTTPS连接问题导致的。你可以尝试使用上述方法禁用安全请求警告来解决这个问题。另外,还可以检查你的网络连接是否正常,以及确保你的Python环境中的证书配置正确。
请注意,禁用安全请求警告可能会带来一定的安全风险,请在安全环境下使用该方法。
#### 引用[.reference_title]
- *1* *3* [HTTPSConnectionPool(host=‘m.weibo.cn‘, port=443): Max retries exceeded with url: /api/container/...](https://blog.csdn.net/weixin_48408504/article/details/118388389)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [SSLError: HTTPSConnectionPool(host=‘api.github.com‘, port=443): Max retries exceeded with url...](https://blog.csdn.net/qq_41824697/article/details/114916986)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url
(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url '/path/to/model'",)) 这个错误是由于在进行HTTPS连接时超过了最大重试次数导致的。这个错误可能有多种原因,包括代理问题和证书验证问题。您在尝试解决这个问题时已经尝试了一些方法,但都没有成功。不过,您提到最后通过使用selenium解决了这个问题。根据您提供的参考链接,您可以尝试参考这个解决方案来解决您遇到的问题。