Navigation

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

    TypeError: 'NoneType' object is not subscriptable

    Python SDK
    0
    2
    18
    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
      prathamshah845 last edited by

      Re: TypeError: 'NoneType' object is not subscriptable

      Hi @admin123 @admin @administrators @adminatkremlin
      I am getting this error, few minutes back this was a fully functional code, I just enterted new TOTP, and then it started giving me this error.

      C:\Work\PythonWorks\AngelAPI\WorKOPY\001\smartapi-python-main\venv\Scripts\python.exe C:\Work\PythonWorks\AngelAPI\WorKOPY\001\smartapi-python-main\example\sample.py
      Traceback (most recent call last):
      File "C:\Work\PythonWorks\AngelAPI\WorKOPY\001\smartapi-python-main\example\sample.py", line 14, in <module>
      data = obj.generateSession("S465418","8585","051289")
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Work\PythonWorks\AngelAPI\WorKOPY\001\smartapi-python-main\SmartApi\smartConnect.py", line 235, in generateSession
      id = user['data']['clientcode']
      ~~~~~~~~~~~~^^^^^^^^^^^^^^
      TypeError: 'NoneType' object is not subscriptable

      Process finished with exit code 1

      1 Reply Last reply Reply Quote 0
      • M
        Moderator_1 last edited by

        Hello @aiotrogen ,

        Apologies for the delayed response.
        We have resolved the issue in a new release. Please use the latest version of the SDK and it will be rectified at your end. Thank you for reporting this issue. If you have any other issue please write to smartapi@angelbroking.com.

        Regards
        SmartAPI Team.

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