Error Logging In Python

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TobyC
    Junior Member
    • Jan 2022
    • 1

    #1

    Error Logging In Python

    I am trying to log in using the code in this guide: https://docs.developer.betfair.com/d...ni/Sample+Code

    I get the following error message


    Message=None
    Params: None
    Exception: HTTPSConnectionPool(host='identitysso-cert.betfair.com', port=443): Max retries exceeded with url: /api/certlogin (Caused by SSLError(SSLError(9, '[SSL] PEM lib (_ssl.c:3862)')))
    Source=C:\Users\Toby Chen\source\repos\Betfair Rounding\Betfair Rounding\Betfair_Rounding.py
    StackTrace:

    During handling of the above exception, another exception occurred:


    During handling of the above exception, another exception occurred:


    During handling of the above exception, another exception occurred:

    File "C:\Users\Toby Chen\source\repos\Betfair Rounding\Betfair Rounding\Betfair_Rounding.py", line 22, in <module> (Current frame)
    trading.login()



    Any tips on how to address this issue?
  • HappyChappy
    Junior Member
    • Feb 2024
    • 5

    #2
    Did you ever solve this? I am having the same problem

    Comment

    • LayItYouMug
      Junior Member
      • May 2009
      • 5

      #3
      I'm not a Python developer, but the SSL error tells me it's probably not working because it doesn't support TLS1.2. The example uses the library urllib2. Try updating it to use urllib3.

      Comment

      Working...
      X