Unable to generate access token after successful generation of request token

kapilacad

Hi,
I have been using kite API (Python Client) successfully from last 3 months, but from yesterday morning i am facing problem in the generation of access token. In the yesterday evening (around 10:00 pm) again the access token was once generated successfully. But from today again the same error appear.
Kite Connect API Version: kiteconnect-3.7.0b10-py3.6.egg
Kite Connect client: (pykiteconnect)
My code to generate access token is as follows:



from kiteconnect import KiteConnect
import webbrowser
import pandas as pd
import logging
request_token="4FVawU71X3Xf8vSAYfQ6XKkNVo3jevId"
api_key=('s954gmx.........')
api_secret=(open('api_secret.txt','r').read())
kite=KiteConnect(api_key=api_key)
logging.basicConfig(level=logging.DEBUG)
result=(kite.generate_session(request_token, api_secret=api_secret))
print(result)


The error report is a long report which i am attaching herewith as jpg.

Thanks a lot
Sign In or Register to comment.