0

My code:

import requests from requests.auth import HTTPBasicAuth url = 'https://104.41.29.106/apibasic/linkdados/v1/qtlink?funcionalidade=RELATORIO&selecao=Fundos%20MM%20Macro%20e%20LS&configuracao=Fundos%20MM%20Macro%20e%20LS'

headers = {'user-agent': 'customize header string', 'Content-Type': 'application/gzip; charset=utf-8'}

r = requests.get(url, auth=HTTPBasicAuth('xxx', 'xxx'), headers=headers, verify=False) print(r.text)

Error: requests.exceptions.SSLError: HTTPSConnectionPool(host='104.41.29.106', port=443): Max retries exceeded with url: /apibasic/linkdados/v1/qtlink?funcionalidade=RELATORIO&selecao=Fundos%20MM%20Macro%20e%20LS&configuracao=Fundos%20MM%20Macro%20e%20LS (Caused by SSLError(SSLError("bad handshake: SysCallError(10054, 'WSAECONNRESET')",),))

Douglas
  • 39
  • 8

0 Answers0