Please help: trading.login() - SSLError(524297, '[SSL] PEM lib (_ssl.c:4046)')

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • newbie
    Junior Member
    • Jan 2025
    • 2

    #1

    Please help: trading.login() - SSLError(524297, '[SSL] PEM lib (_ssl.c:4046)')

    Hello,

    Anybody can help with below error when trading.login()? many thanks

    trading = betfairlightweight.APIClient(username=my_username,
    password=my_password,
    app_key=my_app_key,
    certs=certs_path)​
    trading.login()
    ===Error message============
    .....
    44 response = session.post(
    45 self.url,
    46 data=self.data,
    (...)
    49 timeout=(self.connect_timeout, self.read_timeout),
    50 )
    51 except requests.ConnectionError as e:
    ---> 52 raise APIError(None, exception=e)
    53 except Exception as e:
    54 raise APIError(None, exception=e)

    APIError: None
    Params: None
    Exception: HTTPSConnectionPool(host='identitysso-cert.betfair.com', port=443): Max retries exceeded with url: /api/certlogin (Caused by SSLError(SSLError(524297, '[SSL] PEM lib (_ssl.c:4046)')))​
  • jabe
    Senior Member
    • Dec 2014
    • 698

    #2
    I don't know Python and it appears to be a Python error. This page might: https://dnmtechs.com/understanding-t...h-ssl-library/ help:

    Comment

    • newbie
      Junior Member
      • Jan 2025
      • 2

      #3
      Ok thanks for the help

      Comment

      Working...
      X