zerodha / pykiteconnect

The official Python client library for the Kite Connect trading APIs
MIT License
981 stars 469 forks source link

Getting error while logging through Flask App #81

Closed prakhar-goel closed 2 years ago

prakhar-goel commented 4 years ago

https://github.com/zerodhatech/pykiteconnect/blob/f71087f35ff27178b99646790a3d8850452e0f02/examples/flask_app.py#L43

I am following the flask app. At the time of login, I get the following error message: {"status":"error","message":"Route not found","data":null,"error_type":"GeneralException"}

Looks like the login URL is incorrect.

suraj9321 commented 4 years ago

login_url = "https://kite.trade/connect/login?api_key={api_key}".format(api_key=kite_api_key)

update this with this url. Working fine after changing to this

ranjanrak commented 2 years ago

This is already updated in the latest release.