Skip to content

error setting certificate verify locations #104

@rezochs

Description

@rezochs

我使用最新版本的 curl_cffi出现了这个问题
curl_cffi.curl.CurlError: Failed to perform, ErrCode: 77, Reason: 'error setting certificate verify locations: CAfile: xxx\venv\lib\site-packages\curl_cffi\cacert.pem CApath: none'
During handling of the above exception, another exception occurred:
我安装好这个包的时候他是有证书的 但是我请求任何网站都会报这个错误
from curl_cffi import requests

Notice the impersonate parameter

r = requests.get("https://tls.browserleaks.com/json", impersonate="chrome101")

print(r.json())
这是我的代码
然后我使用的版本是
python3.8
pip 23.2.1 from F:\project\venv\lib\site-packages\pip (python 3.8)
Windows 11 专业版 22H2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions