Help Center> IoT Device Management> FAQs> Secondary Development> FAQs About Application Development> Calling APIs> Authentication API of the IoT Platform Is Successfully Called Locally But Fails to Be Called on Application Servers
Updated on 2022-02-24 GMT+08:00

Authentication API of the IoT Platform Is Successfully Called Locally But Fails to Be Called on Application Servers

  1. You are advised to use the Demo or SDK provided by the IoT platform to call APIs.
  2. Check whether the JDK version is 1.8 or later. (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;

      In this example, the directory is /opt/soft/java.

    2. Open the bin folder of the /opt/soft/java directory.

      cd /opt/soft/java/bin

    3. Check the JDK version.

      ./java -version

  3. Check whether the application server is integrated with the IoT platform certificate. The certificate is provided by the IoT platform service provider.
  4. Check whether the url, body, and header parameters are correct based on the Authentication API.

Calling APIs FAQs

more