[Hi,
I am getting invalid totp error when I call smartapi.generateSession function. refer attached screenshot.
Can you please check.
Note: I get valid totp when i run pyotp.TOTP(credentials.TOEKN).now()
pas22021990
@pas22021990
Best posts made by pas22021990
Latest posts made by pas22021990
-
Getting Invalid totp
-
RE: getting generateSession(clientId, password)
@pas2202199Now getting below error while calling generateSession.
{"sourceID":"WEB","clientPublicIP":"103.254.55.13","macAddress":"20-47-47-D6-39-3B","userType":"USER","clientLocalIP":"192.168.1.100","accept":"application/json"}Exception in thread "main" java.lang.NoSuchMethodError: okhttp3.RequestBody.create(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/RequestBody;
at com.angelbroking.smartapi.http.SmartAPIRequestHandler.createPostRequest(SmartAPIRequestHandler.java:305)
at com.angelbroking.smartapi.http.SmartAPIRequestHandler.postRequest(SmartAPIRequestHandler.java:132)
at com.angelbroking.smartapi.SmartConnect.generateSession(SmartConnect.java:171)
at com.oat.smartapitest.SmartApiClient.main(SmartApiClient.java:26) -
RE: getting generateSession(clientId, password)
@admin I called customer support but they said they will arrange callback. I am not received any callback. Could you please migrate my id S387068
-
RE: generateSession is giving null
@pas22021990
When i call customer care they said they will arrange a call back but I am not receiving any call from customer support. Could you please migrate my id S387068. -
getting generateSession(clientId, password)
I am getting user null when user = smartConnect.generateSession(clientId, password) is called.
below is my code snippet.
SmartConnect smartConnect = new SmartConnect(<api key>);
User user = smartConnect.generateSession(clientId,password);Note: When i executed it first time it worked fine. second time onwards getting user null.
is it because of session related error? -
RE: generateSession is giving null
@admin I am also getting user null when user = smartConnect.generateSession(clientId, password) is called user is getting null.
below is my code snippet.
SmartConnect smartConnect = new SmartConnect(<api key>);
User user = smartConnect.generateSession(clientId,password);Note: When i executed it first time it worked fine. second time onwards getting user null.
is it because of session related error?