简体   繁体   中英

Smartsheet-api and Python SDK certificate verify failed

I am having a basic problem with the SmartSheet Python SDK. I am using Python 3.4

Using the following sample code from the SmartSheet docs:

import smartsheet

smartsheet = smartsheet.Smartsheet(MY_TOKEN_HERE)

me = smartsheet.Users.get_current_user()

print(me)

the line me = smartsheet.Users.get_current_user()

will cause multiple errors of this type

ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)

My token works with both REST API via POSTMAN and simply using Python/Requests functionality

What am I missing ?

I'd suggest that you try using version 2015.04.28 of certifi:

pip uninstall certifi
pip install certifi==2015.04.28

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM