ConvertAPI / convertapi-library-python

A Python library for the ConvertAPI
https://www.convertapi.com
Other
73 stars 22 forks source link

Suddenly started facing SSL Error #5

Closed suri1155 closed 4 years ago

suri1155 commented 5 years ago

I was trying to integrate convertapi for converting my ppt to pdf, Till some point of time it was working fine. Then suddenly i started receiving below SSL error message,

HTTPSConnectionPool(host='v2.convertapi.com', port=443): Max retries exceeded with url: /convert/ppt/to/pdf?Secret=uikSzf1fd7jBfddn (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)'),))

i was using having set code written in python 2.7 `import os import requests import base64 import json

input_filename = "C:/Users/xyz/Desktop/Test_PPT2.ppt" url = "https://v2.convertapi.com/convert/ppt/to/pdf?Secret=my_secrete_key"

try: response = requests.post(url, files={'file':open(input_filename, "rb")}) print "response = ", response.status_code except Exception as e: print "Broken here", e`