TypeError: 'NoneType' object is not subscriptable
-
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 subscriptableProcess finished with exit code 1
-
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.