@Moderator_3
I am using same library and getting same error.
pas22021990
@pas22021990
Best posts made by pas22021990
Latest posts made by pas22021990
-
RE: error AB1050
I tried having separate value of pyotp.TOTP(TOEKN).now() but still same issue. please refer attached screenshot.
How does it solve problem if I assign it in separate variable?
-
RE: error AB1050
@Moderator_3
Hi I am using pyotp python library but still getting same error.obj=SmartConnect(api_key=API_KEY,debug=True)
data = obj.generateSession(USER_NAME,PWD,pyotp.TOTP(TOEKN).now())Response:
{'status': False,
'message': 'Invalid totp',
'errorcode': 'AB1050',
'data': None} -
Getting Invalid totp
[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() -
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?