Hi All ,
I am trying to access a page using Python script.
I have created a Personal Access Token and used it in the Python code.
My Code :
import requests
import json
from requests.auth import HTTPBasicAuth
import base64
encoded = base64.b64encode(b'Email Id : Personalized Access Token')
print ( encoded )
url = "url/<pageid>/child/attachment?start=0&limit=1000"
headers = {
'Authorization': "Basic <encoded string copied here >",
'Cache-Control': "no-cache",
}
proxies = {
"http": <proxy>,
"https": <proxy> ,
}
params1 = (
('status', 'current'),
)
params2 = (
('status', 'trashed'),
)
response = requests.request("GET", url, headers=headers, proxies=proxies)
json_out=response.json()
I am getting the below error:
SSLError: HTTPSConnectionPool(host='confluence.xyz.com', port=443): Max retries exceeded with url: (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),))
Can someone please help , I have tried all permutations and combinations and read many pages but unable to fix this error.