python - 发生异常: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:内部服务器错误:一般错误消息,在遇到意外情况且没有更具体的消息适用时给出
请告诉我
解决方案
这不是您的程序的问题,该站点本身不起作用。尝试从浏览器打开https://shop.mci.ir/charge
推荐阅读
- database - 仅将字符串的第一个字母转换为大写 MS Access
- javascript - SVG 使用元素中的任何移动都会触发 onmouseenter 事件
- javascript - 在 VScode Javascript 中使用 Chrome 调试器时出错
- alignment - 如何将注释与图的左侧对齐?
- typescript - 为什么 TypeScript 显示无法执行路径的错误?
- php - 我正在用 php 编写链接检查器,当站点显示“找不到此页面”之类的屏幕时,我无法收到 HTTP 错误(例如 404 或 400)
- java - ActionListener 完成后如何触发另一个动作监听器?
- android - 打开测试链接有什么问题?
- python - 如何从python中的二维列表中获取第n个元素,以从那些匹配的第n个元素中创建一个新列表
- python - 如何修复 python3 中的“sh: 1: title: not found”错误?