Token exception

hardik__
hardik__ edited September 2017 in Java client
Hi,

I am getting this error.
com.rainmatter.kitehttp.exceptions.KiteTokenException
at com.rainmatter.kitehttp.KiteRequest.dealWithKiteException(KiteRequest.java:224)
at com.rainmatter.kitehttp.KiteRequest.postRequest(KiteRequest.java:46)
at com.rainmatter.kiteconnect.KiteConnect.requestAccessToken(KiteConnect.java:169)
at KiteJAPI.Login(KiteJAPI.java:68)
at KiteJAPI.main(KiteJAPI.java:101)
Tagged:
  • sujith
    Hi @hardik__,
    It means your session is expired and you need to re-login.

    If you are getting this every time you are running the App then it might be because you are requesting for access token every time you run the App.
    Request token can be used only once and it is valid for the only couple of minutes. The access token is valid for a whole day. Once you get access token store it in preferences and use it for next run.
Sign In or Register to comment.