i get this error requests.exceptions.SSLError: HTTPSConnectionPool(host='ipinfo.io', port=443): Max retries exceeded with url: /json (Caused by SSLError(SSLZeroReturnError(6, 'TLS/SSL connection has been closed (EOF) (_ssl.c:997)')))
This is my code :
import requests
proxy_servers = {
'https': 'https://103.97.177.12:7890',
}
response = requests.get('https://ipinfo.io/json',
proxies=proxy_servers, verify=False)
print(response.json()['country'])
print(response.json()['region'])
I was trying to connect to a proxy server using a python code.