Kotak-Neo / kotak-neo-api

108 stars 96 forks source link

Unable to login using NeoAPI #3

Closed prashantsp closed 1 year ago

prashantsp commented 1 year ago

Please help resolve this basic issue of logging in.

I have set the values for these variables access_token, consumer_key and consumer_secret from the napi.kotaksecutiriessite.

When this method is called client = NeoAPI(access_token=accessToken, consumer_key=consumerKey, consumer_secret=consumerSecret, environment='UAT', on_message=on_message, on_error=on_error) try:

Login using password

client.login(mobilenumber=mobileNumber, password=tradingPassword)
print('Client', client)

except Exception as e: print("Exception when calling SessionApi->login: %s\n" % e)

Below ERROR is reported Exception when calling SessionApi->login: View Token hasn't been Generated Kindly Call the Login Function and Try to Generate OTP

If the same method is called without access_key Below ERROR is reported {"data": "{\"data\": {\"Code\": 401, \"Message\": \"Error occurred to initialise the session\"}}"} Exception when calling SessionApi->login: can only concatenate str (not "NoneType") to str

KSAPIHelp commented 1 year ago

Please change "environment='UAT'" to environment='prod'

you are passing production/ Live credentials for UAT resulting in error.

prashantsp commented 1 year ago

Where do i get the credentials for uat ?

On Tue, 27 Jun 2023, 18:06 KSAPIHelp, @.***> wrote:

Please change "environment='UAT'" to environment='prod'

you are passing production/ Live credentials for UAT resulting in error.

— Reply to this email directly, view it on GitHub https://github.com/Kotak-Neo/kotak-neo-api/issues/3#issuecomment-1609417481, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHB23MXVKEISUTYP4VZFTVTXNLHUDANCNFSM6AAAAAAZVRBYWU . You are receiving this because you authored the thread.Message ID: @.***>

KSAPIHelp commented 1 year ago

This facility is available on request basis. For further assistance, kindly reach out to Kotak Securities customer service team. They will be able to provide you with the necessary information and assist you with your request.