I am gettitng token exception since morning when trying to generate the acces_token and public_token. I am using the api for a while, and this was working since yesterdau, so there is no issue with the code. I am using the new request_token to generate the access_token.
Code -> ``` val kite = KiteConnect(Keys.API_KEY) kite.userId = Keys.USER_ID val user = kite.generateSession(Keys.REQUEST_TOKEN, Keys.API_SECRET) println("accessToken:" + user.accessToken) println("publicToken:" + user.publicToken) ```
Error -> ``` /Library/Java/JavaVirtualMachines/jdk-13.0.1.jdk/Contents/Home/bin/java -javaagent:/Applications/IntelliJ IDEA CE.app/Contents/lib/idea_rt.jar=49386:/Applications/IntelliJ IDEA CE.app/Contents/bin -Dfile.encoding=UTF-8 -classpath /Users/KC/Documents/workspace/github/kshitij-chaudhari/kite/KCKiteApp/build/classes/kotlin/main:/Users/KC/Documents/workspace/github/kshitij-chaudhari/kite/KCKiteApp/libs/kiteconnect.jar:/Users/KC/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.9.0/e000bd084353d84c9e888f6fb341dc1f5b79d948/kotlin-stdlib-jdk8-1.9.0.jar:/Users/KC/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.9.0/f320478990d05e0cfaadd74f9619fd6027adbf37/kotlin-stdlib-jdk7-1.9.0.jar:/Users/KC/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.9.0/8ee15ef0c67dc83d874f412d84378d7f0eb50b63/kotlin-stdlib-1.9.0.jar:/Users/KC/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.9.0/cd65c21cfd1eec4d44ef09f9f52b6d9f8a720636/kotlin-stdlib-common-1.9.0.jar:/Users/KC/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/13.0/919f0dfe192fb4e063e7dacadee7f8bb9a2672a9/annotations-13.0.jar kc.kite.auth.GetAccessTokenKt Exception in thread "main" com.zerodhatech.kiteconnect.kitehttp.exceptions.TokenException at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.dealWithException(KiteResponseHandler.java:49) at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.handle(KiteResponseHandler.java:21) at com.zerodhatech.kiteconnect.kitehttp.KiteRequestHandler.postRequest(KiteRequestHandler.java:90) at com.zerodhatech.kiteconnect.KiteConnect.generateSession(KiteConnect.java:189) ```