IoT Central Data export webhook endpoint is not receiving JSON

randomrabbit 121 Reputation points
2022-03-17T16:17:56.05+00:00

I set up a data export from IoT Central using webhook as per the data export tutorial. My destination for debug purposes is https://requestbin.net/. The messages I receive at the end point do not seem to contain the JSON messages sent to IoT Central. I'm receiving GET calls without any body or visible content. What could be wrong?

Azure IoT Central
Azure IoT Central
An Azure hosted internet of things (IoT) application platform.
355 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde 29,776 Reputation points MVP
    2022-03-17T20:08:42.043+00:00

    Hello @randomrabbit ,

    I just tested this using the quickstart (using my Android phone).

    Did you add the transformation pointing to your template?

    This is what I did...

    I connected my phone and I got incoming messages in the portal:

    184257-image.png

    I then added this WebHook destination:

    184284-image.png

    I then added the export, pointing to the destination:

    184285-image.png

    Notice I also set the data transformation!

    Select the right template:

    184291-image.png

    Save it and wait a few seconds so the export can connect...

    And I get these incoming messages:

    184258-image.png

    Note: Make sure your phone did not close the connection of the app...