Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. pas22021990
    P
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    pas22021990

    @pas22021990

    SmartAPI Group

    1
    Reputation
    11
    Posts
    4
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    pas22021990 Follow
    SmartAPI Group

    Best posts made by pas22021990

    This user hasn't posted anything yet.

    Latest posts made by pas22021990

    • RE: error AB1050

      @Moderator_3
      I am using same library and getting same error.

      posted in Python SDK
      P
      pas22021990
    • RE: error AB1050

      @pas22021990

      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?

      f565ead6-7b96-45cf-a1f7-da7643c276b1-image.png

      posted in Python SDK
      P
      pas22021990
    • 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}

      posted in Python SDK
      P
      pas22021990
    • 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()

      98e2c57c-f7f8-4c83-8c99-5d676b36ace1-image.png

      posted in General Discussion
      P
      pas22021990
    • 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)

      posted in NodeJS SDK
      P
      pas22021990
    • 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

      posted in NodeJS SDK
      P
      pas22021990
    • 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.

      posted in NodeJS SDK
      P
      pas22021990
    • HI ADMIN, PLEASE MIGRATE my id S387068

      Re: MIGRATE

      posted in General Discussion
      P
      pas22021990
    • RE: generateSession is giving null

      @admin No. How can i do it?

      posted in NodeJS SDK
      P
      pas22021990
    • 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?

      posted in NodeJS SDK
      P
      pas22021990