# Payload is set to false

**URL:** https://discourse.nodered.org/t/payload-is-set-to-false/55490
**Category:** General
**Created:** [20 December 2021 16:55 UTC](https://discourse.nodered.org/t/payload-is-set-to-false/55490 "2021-12-20T16:55:23Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![hanine](https://avatars.discourse-cdn.com/v4/letter/h/b4bc9f/32.png) [@hanine](https://discourse.nodered.org/u/hanine)
#### Post date: [20 December 2021 16:55 UTC](https://discourse.nodered.org/t/payload-is-set-to-false/55490/1 "2021-12-20T16:55:23Z")

</div>

Hello can someone help i don't understand why payload is set to false here  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/8/180ce1cf042f95bf527b9533ad2bbaab094225c1.png)  
when iam setting it to this  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/1/b1d1416815bf4cac7fd4840967f271f2a93727dd.png)  
its the body of the request  
Thank you in advance

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [20 December 2021 17:05 UTC](https://discourse.nodered.org/t/payload-is-set-to-false/55490/2 "2021-12-20T17:05:17Z")

</div>

Can you show us the flow so we can see where the Debug node that generated that output is in relation to the Function node code you've shared?

---

<div class="post-metadata">

### Author: ![hanine](https://avatars.discourse-cdn.com/v4/letter/h/b4bc9f/32.png) [@hanine](https://discourse.nodered.org/u/hanine)
#### Post date: [20 December 2021 17:09 UTC](https://discourse.nodered.org/t/payload-is-set-to-false/55490/3 "2021-12-20T17:09:10Z")

</div>

here is the debug node for that node and its returning the payload correctly that's why i didnt understand i thought the problem is maybe with the api node

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/b/7b1f96518b5de04e34465f5205fb8dd5795d324a.png)

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [20 December 2021 21:46 UTC](https://discourse.nodered.org/t/payload-is-set-to-false/55490/4 "2021-12-20T21:46:04Z")

</div>

It is best to give all your debug nodes names. Then it will be clear which debug node is producing which output.  
The debug you showed (with payload "false") is not coming from the debug node connected directly to the function as that debug is set to show msg.payload, whereas the output you showed is a complete message.

I think you should pay attention to the warning about not overriding message properties. Fix that and see if it helps.

---

<div class="post-metadata">

### Author: ![hanine](https://avatars.discourse-cdn.com/v4/letter/h/b4bc9f/32.png) [@hanine](https://discourse.nodered.org/u/hanine)
#### Post date: [21 December 2021 08:30 UTC](https://discourse.nodered.org/t/payload-is-set-to-false/55490/5 "2021-12-21T08:30:16Z")

</div>

yes the output that shows payload false is from the debug node connected to the http request node and the one that shows the correct payload is connected to the set header and body node. as for the warning I've been receiving it even before i created that flow i don't understand why it is not sending the correct payload to the next node when everything else is sent correctly

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [21 December 2021 08:45 UTC](https://discourse.nodered.org/t/payload-is-set-to-false/55490/6 "2021-12-21T08:45:24Z")

</div>

> [@hanine](#):
>
> as for the warning I've been receiving it even before i created that flow

One of the golden rules of debugging issues that you do not understand is first to fix any easily fixable issues, even if you think they are not related to the problem.

Which node is the warning coming from (hover over the warning). If it is the http node then show us how you have configured that node.

> [@hanine](#):
>
> i don't understand why it is not sending the correct payload

You don't understand why what is not sending the correct payload?

Are you sure you want all those quotes and backslashes around the data sent in the payload?  
Can you explain why you want the url in the parameters in the payload?

---

<div class="post-metadata">

### Author: ![hanine](https://avatars.discourse-cdn.com/v4/letter/h/b4bc9f/32.png) [@hanine](https://discourse.nodered.org/u/hanine)
#### Post date: [21 December 2021 08:55 UTC](https://discourse.nodered.org/t/payload-is-set-to-false/55490/7 "2021-12-21T08:55:02Z")

</div>

yes it's the same as parsing them to JSON I'am just consuming an API following their documentation and in a previous APIsending the body in the payload worked just fine

---

<div class="post-metadata">

### Author: ![hanine](https://avatars.discourse-cdn.com/v4/letter/h/b4bc9f/32.png) [@hanine](https://discourse.nodered.org/u/hanine)
#### Post date: [21 December 2021 08:55 UTC](https://discourse.nodered.org/t/payload-is-set-to-false/55490/8 "2021-12-21T08:55:48Z")

</div>

the warning is coming from the http request node

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [21 December 2021 10:14 UTC](https://discourse.nodered.org/t/payload-is-set-to-false/55490/9 "2021-12-21T10:14:39Z")

</div>

Show us how you have configured it (as I asked previously).

---

<div class="post-metadata">

### Author: ![hanine](https://avatars.discourse-cdn.com/v4/letter/h/b4bc9f/32.png) [@hanine](https://discourse.nodered.org/u/hanine)
#### Post date: [21 December 2021 16:17 UTC](https://discourse.nodered.org/t/payload-is-set-to-false/55490/10 "2021-12-21T16:17:09Z")

</div>

thank you for you fast replies but the problem was with the "" you mentioned i chanched them to JSON.stringify and it workrd thank you

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [21 December 2021 16:56 UTC](https://discourse.nodered.org/t/payload-is-set-to-false/55490/11 "2021-12-21T16:56:41Z")

</div>

So has that warning gone?

If not then don't you want to sort it?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [4 January 2022 16:57 UTC](https://discourse.nodered.org/t/payload-is-set-to-false/55490/12 "2022-01-04T16:57:13Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
