'NoneType' object is not subscriptable, unable to login because of this error


  • I'm getting this error "'NoneType' object is not subscriptable" at this line "refreshToken= data['data']['refreshToken']" . I have taken this line of code from smart api's documentation and added me credentials and totp but am unable to login. I am running this on google colab just for your reference. @admin please help me as I'm losing valuable time on such useless error.