Closed renjithsasidharan closed 1 year ago
Try printing the response message of the login API and share that to debug the issue.
@Kotak-Neo
I get <Response [401]>{"error_description":"invalid_client","error":"invalid_client"}
from session_init
Let me know If you need more details
Hmm, I think I was using the client id and secret from tradeapi.kotaksecurities.com. I registed in napi.kotaksecurities.com and tried using the credentials from that now its working. It is confusing as to what is to be used to to authenticate with APIs.
Thanks for responding quickly to the issue anyways
I am using the prod credentials from developer portal and neo web portal's password but I get
TypeError: can only concatenate str (not "NoneType") to str
from login_api.py:58 I debugged and found thatLoginAPI.session_init
returns 401