Navigation

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

    Getting Error on connecting through smartConnect.generateSession : Cannot read the array length because "mac" is null

    NodeJS SDK
    2
    4
    58
    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.
    • T
      tomatoailis last edited by

      Getting Error on connecting through smartConnect.generateSession : Cannot read the array length because "mac" is null

      The error is coming in file SmartAPIRequest in method createPostRequest()

      at following line

      // MAC Address
      NetworkInterface network = NetworkInterface.getByInetAddress(localHost);
      byte[] mac = network.getHardwareAddress();

      More details :
      I am running this code on local machine ( ubuntu 20.10)

      Please advice what could be the issue.

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

        Hi @shekharchauhan , Thank you for your time and explaining the issue in detail to our development team member. I understand, we have been successful in applying a manual fix for your system. We will soon update our SDK.

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

          Hi @shekharchauhan , Local maching (Mac address) is fixed and we have updated our Java SDK.

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

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • First post
              Last post