V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · 1894 views
    This topic created in 1919 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   ·   Solana   ·   2540 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 16:09 · PVG 00:09 · LAX 09:09 · JFK 12:09
    ♥ Do have faith in what you're doing.