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

GitHub | NitishDeshpande | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Not able to register new device

    GitHub | 7 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