build time error with Kiteconnect

kishan34
while im trying to build my python program using Kiteconnect is giving following error

requests.exceptions.SSLError: HTTPSConnectionPool(host='api.kite.trade', port=443): Max retries exceeded with url: /session/token (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)'),))
  • rakeshr
    @kishan34
    For which API end-point is the above error thrown?
  • kishan34
    This point its giving error.

    data = kite.generate_session(request_token, api_secret = api_secret)
  • rakeshr
    It seems to be happening due to lacking SSL certificates in your Python installation. You can try the below command and then do a fresh installation of kiteconnect python client.
    pip install --upgrade certifi
  • kishan34
    it says

    Requirement already up-to-date: certifi in c:\users\kishan\appdata\local\programs\python\python36\lib\site-packages
    You are using pip version 9.0.1, however version 20.2.3 is available.
    You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Sign In or Register to comment.