Always getting "com.rainmatter.kitehttp.exceptions.KiteTokenException"

SureshMoorthi
As mentioned in the link "https://github.com/rainmattertech/javakiteconnect/blob/master/sample/src/Test.java#L50" am trying to get the "Access Token" but i am getting the following exception always.

at com.rainmatter.kitehttp.KiteRequest.dealWithKiteException(KiteRequest.java:255)
at com.rainmatter.kitehttp.KiteRequest.postRequest(KiteRequest.java:51)
at com.rainmatter.kiteconnect.KiteConnect.requestAccessToken(KiteConnect.java:181)
at kite.KiteMain.main(KiteMain.java:34)

Why do i get this error? Anybody faced this?

Thanks,
Suresh M
  • sujith
    Hi @SureshMoorthi,
    A request token is valid for a couple of minutes and validity is once. The access token is valid for one day.
    Once you get access token store it and reuse it, don't call requestAccessToken API for every run.
Sign In or Register to comment.