# Unable to get any data through TTN webhook

**URL:** <https://forums.losant.com/t/unable-to-get-any-data-through-ttn-webhook/5102>\
**Category:** Help\
**Tags:** workflow\
**Created:** [June 10, 2023, 7:41pm UTC](https://forums.losant.com/t/unable-to-get-any-data-through-ttn-webhook/5102 "2023-06-10T19:41:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![IgorP](https://avatars.discourse-cdn.com/v4/letter/i/e19b73/32.png) [@IgorP](https://forums.losant.com/u/IgorP)\
**Post date:** [June 10, 2023, 7:41pm UTC](https://forums.losant.com/t/unable-to-get-any-data-through-ttn-webhook/5102/1 "2023-06-10T19:41:31Z")

</div>

Hello.

Dealing with a noob here, so please be gentle. I did find a similar topic, but unfortunately, the guy managed to get the webhook running right away.

I, however, cant seem to make it work. I have copied the URL of the webhook:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/9/9faaaad13e11cd0819da72d83c8b468b8c10d1c3.png)

Enabled the workflow:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/9/9160251ccb36c5bc52c3e06d757fcde479d8a3db.png)

Defined my device, which I built myself (but still need to define parsing):

 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/a/a537e9e82f0d84e8ae5ebad6cc2d1bdc502fab97.png)

Please help, I am obviously a …

Thank you.

---

<div class="post-metadata">

**Author:** ![IgorP](https://avatars.discourse-cdn.com/v4/letter/i/e19b73/32.png) [@IgorP](https://forums.losant.com/u/IgorP)\
**Post date:** [June 10, 2023, 7:42pm UTC](https://forums.losant.com/t/unable-to-get-any-data-through-ttn-webhook/5102/2 "2023-06-10T19:42:07Z")

</div>

Also the device works in TTN, have my own formatter…

 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/b/b56432da2369a09fca4c55e12e94750ea37e0626.png)

---

<div class="post-metadata">

**Author:** ![IgorP](https://avatars.discourse-cdn.com/v4/letter/i/e19b73/32.png) [@IgorP](https://forums.losant.com/u/IgorP)\
**Post date:** [June 15, 2023, 1:17pm UTC](https://forums.losant.com/t/unable-to-get-any-data-through-ttn-webhook/5102/3 "2023-06-15T13:17:25Z")

</div>

Hello.

Finally it started working, it is a complete mistery why or how, but I get now messages.

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [June 15, 2023, 1:37pm UTC](https://forums.losant.com/t/unable-to-get-any-data-through-ttn-webhook/5102/4 "2023-06-15T13:37:05Z")

</div>

Hi @IgorP and welcome to the Losant Forums!

First, my apologies for us not getting back to you on this sooner. We are investigating why your original post slipped through.

Glad to hear things are working now, and if you uncover the mystery of why it was not working before but is now, please let us know as I’m sure that will be valuable to our other users, too.

I did take a look in your workflow after you posted this and, while you will be receiving requests to your webhook and triggering your workflow, I do not think your Device State Node will record the values to your device attributes correctly.

 ![Screenshot 2023-06-15 at 9.32.22 AM](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/a/a4018d66044492397d9c900b360fff588490b922.png)

Based on what you are doing in the Function Node above this …

- The value of your `battery` attribute should just be `{{battery}}`
- The value of your `humidity` attribute should just be `{{humidity}}`
- The value of your `temperature` attribute should just be `{{temperature}}`

However, that Function Node is just moving some values around, so alternatively you could remove it and change your Device State Node so that …

- The value of your `battery` attribute would be `{{data.body.uplink_message.decoded_payload.battery}}`
- The value of your `humidity` attribute would be `{{data.body.uplink_message.decoded_payload.humidity}}`
- The value of your `temperature` attribute would be `{{data.body.uplink_message.decoded_payload.temperature}}`

We have some excellent documentation on [referencing payload values](https://docs.losant.com/workflows/accessing-payload-data/), and there are tools built into the workflow editor to also help you find the paths to values on the payload from debug messages - such as our [Template Tester](https://docs.losant.com/workflows/platform-template-tester/). As a pro tip, you can also right-click the name of any property in a debug message to copy its full path to your clipboard for use in a node editor.

Hopefully this helps. Once again, welcome to Losant!

---

<div class="post-metadata">

**Author:** ![IgorP](https://avatars.discourse-cdn.com/v4/letter/i/e19b73/32.png) [@IgorP](https://forums.losant.com/u/IgorP)\
**Post date:** [June 15, 2023, 1:55pm UTC](https://forums.losant.com/t/unable-to-get-any-data-through-ttn-webhook/5102/5 "2023-06-15T13:55:46Z")

</div>

Hello,

many thanks for the warm welcome.

I will have to do some reading, otherwise I will not be able to get my dashboard running. I believe I made a bit of a mess.
