Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    generateSession is giving null

    NodeJS SDK
    3
    10
    79
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      forallatech last edited by

      @admin When User user = smartConnect.generateSession(clientId, password) is called user is getting null. I am not quite not sure what clientId and password are. Are they username and password while logging in or are they something else? Please help! this is urgent.

      A 1 Reply Last reply Reply Quote 0
      • A
        admin @forallatech last edited by

        HI @forallatech Client id and password are same which you used to login your web based platform.

        P 1 Reply Last reply Reply Quote 0
        • P
          pas22021990 @admin last edited by

          @admin I am also getting user null when user = smartConnect.generateSession(clientId, password) is called user is getting null.
          below is my code snippet.
          SmartConnect smartConnect = new SmartConnect(<api key>);
          User user = smartConnect.generateSession(clientId,password);

          Note: When i executed it first time it worked fine. second time onwards getting user null.
          is it because of session related error?

          A P 2 Replies Last reply Reply Quote 0
          • A
            admin @pas22021990 last edited by

            HI @pas22021990 Have you migrated your account.

            P 1 Reply Last reply Reply Quote 0
            • P
              pas22021990 @admin last edited by

              @admin No. How can i do it?

              A 1 Reply Last reply Reply Quote 0
              • A
                admin @pas22021990 last edited by

                HI @pas22021990 Kindly fill below form
                https://docs.google.com/forms/u/1/d/e/1FAIpQLSdgpCiDhSBa_bsKsec002e9unbeQkipOLFAKW7DzPvmiowsaw/viewform

                1 Reply Last reply Reply Quote 0
                • P
                  pas22021990 @pas22021990 last edited by

                  @pas22021990
                  When i call customer care they said they will arrange a call back but I am not receiving any call from customer support. Could you please migrate my id S387068.

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    admin @pas22021990 last edited by

                    HI @pas22021990 said in generateSession is giving null:

                    S387068

                    Your account has been migrated kindly post your request you are trying to generate session.

                    1 Reply Last reply Reply Quote 0
                    • D
                      Dipansu last edited by

                      I am facing the sam issue

                      getting null value

                      1 Reply Last reply Reply Quote 0
                      • V
                        vamshikrishna last edited by

                        I'm also facing same issue. Password is PIN right? here is my code: SmartConnect smartConnect = new SmartConnect("<api_key>"); User user = smartConnect.generateSession(<clientId>, <password>, <totp>);

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post