Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. sagarmonapara
    S
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    sagarmonapara

    @sagarmonapara

    0
    Reputation
    3
    Posts
    1
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    sagarmonapara Follow

    Best posts made by sagarmonapara

    This user hasn't posted anything yet.

    Latest posts made by sagarmonapara

    • RE: Authorization TOKEN

      @Kranthi @admin Actually in the document there is no clear topic about authentication and what is the expiration time of those tokens. Just like you I have generated auth_token and refresh token but getProfile API says invalid token.

      I added our token to jwt.io site to check its expiration time and it show the 3 year of expiration of auth_token and no expiration for refresh_token

      posted in General Discussion
      S
      sagarmonapara
    • 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:

      posted in Bugs
      S
      sagarmonapara
    • Got error while requesting accessToken

      Hello Devs!
      I am using nodejs SDK to connect with angel one smart API. I did code by reading your document but I am getting the below error while requesting accessToken.

      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, using which I am trying:
      let smart_api = new SmartAPI({
      api_key: API_KEY
      });

      smart_api.generateSession(CLIENT_CODE,PASSWORD).then((res)=>{
      console.log('sessionRes:',res);
      }).catch(console.log);

      Please guide me what should I do?

      posted in Bugs
      S
      sagarmonapara