Help Center> IoT Device Access> FAQs> Application Integration> Why Did the Calling of the Authentication API of the IoT Platform Succeed Locally But Failed on an Application?

Why Did the Calling of the Authentication API of the IoT Platform Succeed Locally But Failed on an Application?

You are advised to use the demos or SDKs provided by the platform to call the API.

  1. Check whether the JDK version is 1.8 or later, and the TLS version is 1.2. The Linux OS is used as an example to describe how to check the JDK version.

    1. Search for the directory where the JDK is installed.

      echo $JAVA_HOME

      Let's assume that the JDK is installed in /opt/soft/java.

    2. Go to the bin directory in /opt/soft/java.

      cd /opt/soft/java/bin

    3. Check the JDK version.

      ./java -version

  2. Check whether the application is integrated with the platform certificate. The certificate is provided by the platform service provider.
  3. Check whether the url, body, and header parameters are correctly set based on the description of the authentication API.