It looks like you're new here. If you want to get involved, click one of these buttons!
var KiteConnect = require("kiteconnect").KiteConnect;
var kc = new KiteConnect({
api_key: "api_key"
});
kc.generateSession("request_token", "api_secret")
.then(function(response) {
init();
})
.catch(function(err) {
console.log(err);
});
function init() {
kc.getMargins()
.then(function(response) {
})
.catch(function(err) {
});
}
However during generateSession call it is failing with the following exception