Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    INVALID TOTP, ERROR CODE AB1050

    Python SDK
    0
    2
    67
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      piidus last edited by

      Traceback (most recent call last):
      File "E:\ALGO\ANGEL_ONE\ltp.py", line 16, in <module>
      refreshToken = data['data']['refreshToken']
      TypeError: 'NoneType' object is not subscriptable
      {'status': False, 'message': 'Invalid totp', 'errorcode': 'AB1050', 'data': None}

      S 1 Reply Last reply Reply Quote 0
      • S
        sauronx @piidus last edited by

        Hi @piidus,
        I think you need to provide correct TOTP code in following line of code:
        obj.generateSession("","","totp") # (if you are trying similar code )

        1 Reply Last reply Reply Quote 0
        • First post
          Last post