Kotak-Neo / kotak-neo-api

96 stars 80 forks source link

repeatedly facing Error while initialising login #137

Closed dikshantpatel27 closed 5 months ago

dikshantpatel27 commented 5 months ago

while initiating login an error related to concatenation of strings is repeatedly occurring despite all login credentials being correct. TypeError: can only concatenate str (not "NoneType") to str Please help to rectify this.

Screenshot 2024-02-06 113717

knkrth commented 5 months ago

@dikshantpatel27 If you are using env variable for consumer_key and consumer_secret as consumerkey & secretkey you need to remove the double quotes like,

consumerkey = "x123apikey321"
secretkey = "x123apisecret321"

client = NeoAPI(consumer_key=consumerkey, consumer_secret=secretkey, environment='prod')

you need to removed the quotes from mobile, password and mpin aswell.

dikshantpatel27 commented 5 months ago

Thanks a lot @knkrth