Got error while requesting for accessToken


  • Hello Devs!
    I am using a nodejs SDK to connect with you. I am trying to connect but I am getting the below error.

    ERROR:
    TypeError: Cannot read properties of undefined (reading 'status')
    at /Volume-B/Angel smartAPI/alog-trad-app/node_modules/smartapi-javascript/lib/smartapi-connect.js:99:28
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    /Volume-B/Angel smartAPI/alog-trad-app/node_modules/smartapi-javascript/lib/smartapi-connect.js:99
    if (error.response.status) {

    CODE to generate token: