Smartapi python - Nonetype object is not subscriptable


  • line 13, in <module>
    refreshToken=data['data']['refreshToken']

    TypeError: 'NoneType' object is not subscriptable


    this error pops up when i'm trying to fetch data through smartapi - python

    pip upgrade done
    totp added

    but still getting this error. pl help


  • Hi @Starlord

    Apologies for delayed response.
    The Nonetype object issue has been fixed, Kindly use the recent SDK and let us know if the issue still occurs.

    Thanks & Regards,
    SmartAPI team