Invalid session credentials

pandithurai
Our application (Windows client) able to login into kite from last few months, suddenly from today morning we get the below error after login and in initSession function, script as below (C# kiteconnect)

Please help as soon as possible.

string requestToken = RequestTokenTextBox.Text.Trim();
User user = kite.RequestAccessToken(requestToken, MySecret);

updateStatus(JsonSerialize(user));

MyAccessToken = user.AccessToken;
MyPublicToken = user.PublicToken;
AccessTokenTextBox.Text = MyAccessToken;
PublicTokenTextBox.Text = MyPublicToken;



The remote server returned an error: (403) Forbidden.
https://api.kite.trade/session/token

Invalid session credentials
  • pandithurai
    Error message : The remote server returned an error: (403) Forbidden.
    Invalid session credentials


  • sujith
    How are you passing the request token post login successful? If you are doing string matching then I would suggest changing that to reading query params value.
  • trade_then
    trade_then edited March 2018
    could it be that you are using previous version of dotnetkiteconnect
    because as in your code RequestAccessToken exists no more.
    GenerateSession is the function in current default library.

    Why not upgrade to new version.

    Thanks
    Regards


    Ps: I am sorry I did not see your question is related to kitepublisher. my comment might be irrelevant..
Sign In or Register to comment.