推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
fangwenxue
V2EX  ›  Python

Python 出现 certificate verify failed: unable to get local issuer certificate

  •  
  •   fangwenxue · Feb 7, 2021 · 2224 views
    This topic created in 2055 days ago, the information mentioned may be changed or developed.
    client = MongoClient('mongodb+srv://xxx.azure.mongodb.net/?retryWrites=true&w=majority',
                         connectTimeoutMS=5000, socketTimeoutMS=5000)
    
    • 环境 mac python37
    pymongo.errors.ServerSelectionTimeoutError
    certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)
    
    • 奇怪的是 mac 里面的 ubuntu 虚拟机又正常
    • mac 用 requests 请求各种 https 也正常
    2 replies  •  2021-02-08 10:47:17 +08:00
    mrchi
        1
    mrchi  
       Feb 8, 2021
    是不是遇到了墙
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2485 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 07:15 · PVG 15:15 · LAX 00:15 · JFK 03:15
    ♥ Do have faith in what you're doing.