首页 > 解决方案 > 发生异常:SSLError HTTPSConnectionPool

问题描述

鳕鱼

import requests
irancell='https://shop.irancell.ir/charge/fa/'
mci='https://shop.mci.ir/charge'
Page_Url=requests.get(irancell)
print('Irancell',Page_Url)
Page_Url1=requests.get(mci)
print('mci',Page_Url1)

错误

我在第 6 行遇到了这个问题,

Exception has occurred: SSLError HTTPSConnectionPool(host='shop.mci.ir', port=443): Max retries exceeded with url: /charge (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1123)')))

当然我不得不说当网站正常运行时 <Response[500]> 表示。

500:内部服务器错误:一般错误消息,在遇到意外情况且没有更具体的消息适用时给出

请告诉我

标签: pythonpython-3.xpython-requestspython-3.9

解决方案


这不是您的程序的问题,该站点本身不起作用。尝试从浏览器打开https://shop.mci.ir/charge


推荐阅读