com.ibm.iotf.client.IoTFCReSTException: Invalid request (No body, invalid JSON, unexpected key, bad value)

GitHub | NitishDeshpande | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Not able to register new device

    GitHub | 9 months ago | NitishDeshpande
    com.ibm.iotf.client.IoTFCReSTException: Invalid request (No body, invalid JSON, unexpected key, bad value)

    Root Cause Analysis

    1. com.ibm.iotf.client.IoTFCReSTException

      Invalid request (No body, invalid JSON, unexpected key, bad value)

      at com.ibm.iotf.client.api.APIClient.registerDevice()
    2. com.ibm.iotf
      APIClient.registerDevice
      1. com.ibm.iotf.client.api.APIClient.registerDevice(APIClient.java:1723)
      2. com.ibm.iotf.client.api.APIClient.registerDevice(APIClient.java:1666)
      2 frames
    3. com.mindtree.coe
      AssetsController.addNewAsset
      1. com.mindtree.coe.iot.watson.services.AssetsService.addInternetCapableAsset(AssetsService.java:66)
      2. com.mindtree.coe.iot.watson.controllers.AssetsController.addNewAsset(AssetsController.java:26)
      2 frames
    4. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3 frames