It looks like you're new here. If you want to get involved, click one of these buttons!
.Net API client
.Net / VBA / Excel (3rd party)
Algorithms and Strategies
Mobile and Desktop apps
Market data (WebSockets)
In this Discussion
Getting error If I invoke kite.connect more than once.
We are using kite connect publisher buttons. My code is working the first time. Next time onwards I am getting the folowing error.
publisher.js:106 Uncaught TypeError: Cannot read property 'document' of null
at popup (publisher.js:106)
My code is as follows
let kite = new KiteConnect("xxxxxx")
Let me know if need to do anycleanup on the first trade completion.
Can you paste the complete code to reproduce the issue?