# Collect http adress

**URL:** <https://discourse.nodered.org/t/collect-http-adress/31944>\
**Category:** General\
**Created:** [24 August 2020 11:41 UTC](https://discourse.nodered.org/t/collect-http-adress/31944 "2020-08-24T11:41:57Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![mykerinos1](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mykerinos1/32/46877_2.png) [@mykerinos1](https://discourse.nodered.org/u/mykerinos1)\
**Post date:** [24 August 2020 11:41 UTC](https://discourse.nodered.org/t/collect-http-adress/31944/1 "2020-08-24T11:41:58Z")

</div>

Hllo i asked for help few month ago to solve my troulbe . i need to send a unique http adress to my mqtt broker.  
it was working but today i made a mistake on my raspberry and i deleted my work so i need your hel one more time to help me  
like that it work

 ![Capture1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/9/b94dfda52ff17fabe614fea2a723fc8c4d293027.jpeg)

but like that it doesnt work

 ![Capture1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/d/9d7868eb77f54c3e8c9f89a2beb9928c9794caaf.jpeg)

have you got answers

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [24 August 2020 11:49 UTC](https://discourse.nodered.org/t/collect-http-adress/31944/2 "2020-08-24T11:49:56Z")

</div>

Payload is empty in the debug because you `move`d msg.payload to msg.url

Either change your debug to view the full `msg` or to view `msg.url`

---

<div class="post-metadata">

**Author:** ![mykerinos1](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mykerinos1/32/46877_2.png) [@mykerinos1](https://discourse.nodered.org/u/mykerinos1)\
**Post date:** [24 August 2020 11:57 UTC](https://discourse.nodered.org/t/collect-http-adress/31944/3 "2020-08-24T11:57:00Z")

</div>

ok . how can i see full debug ? it look like deployed

---

<div class="post-metadata">

**Author:** ![mykerinos1](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mykerinos1/32/46877_2.png) [@mykerinos1](https://discourse.nodered.org/u/mykerinos1)\
**Post date:** [24 August 2020 12:02 UTC](https://discourse.nodered.org/t/collect-http-adress/31944/4 "2020-08-24T12:02:36Z")

</div>

at first it was somethoing like that

 ![Capture1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/8/c8e0c863208a38194707d8cdc2f271fb4e7d2842.jpeg)  
But here no http

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [24 August 2020 12:13 UTC](https://discourse.nodered.org/t/collect-http-adress/31944/5 "2020-08-24T12:13:54Z")

</div>

We have no idea what is in msg.url.

Attache a debug as shown.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/9/391f73814f7c6e759a646095e486749832af34c5.png)

---

<div class="post-metadata">

**Author:** ![mykerinos1](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mykerinos1/32/46877_2.png) [@mykerinos1](https://discourse.nodered.org/u/mykerinos1)\
**Post date:** [24 August 2020 12:28 UTC](https://discourse.nodered.org/t/collect-http-adress/31944/6 "2020-08-24T12:28:11Z")

</div>

![Capture1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/1/e1c9abd08d7fc48ab2ed07974a47d09ce01875a6.jpeg)

i only have "undefined"

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [24 August 2020 12:31 UTC](https://discourse.nodered.org/t/collect-http-adress/31944/7 "2020-08-24T12:31:55Z")

</div>

You didint do what i asked.

> "put a debug here set to show complete message"

- Put a debug set to show complete message on **EVERY** output of **EVERY** node  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/a/fad4398c0139868d4c1831f1c85a707515637127.png)

- In the debug panel, Expand EVERY part of the debug message

---

<div class="post-metadata">

**Author:** ![mykerinos1](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mykerinos1/32/46877_2.png) [@mykerinos1](https://discourse.nodered.org/u/mykerinos1)\
**Post date:** [24 August 2020 12:32 UTC](https://discourse.nodered.org/t/collect-http-adress/31944/8 "2020-08-24T12:32:38Z")

</div>

exactly i just saw it. i send immediatly good one

---

<div class="post-metadata">

**Author:** ![mykerinos1](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mykerinos1/32/46877_2.png) [@mykerinos1](https://discourse.nodered.org/u/mykerinos1)\
**Post date:** [24 August 2020 12:33 UTC](https://discourse.nodered.org/t/collect-http-adress/31944/9 "2020-08-24T12:33:43Z")

</div>

just momment

---

<div class="post-metadata">

**Author:** ![mykerinos1](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mykerinos1/32/46877_2.png) [@mykerinos1](https://discourse.nodered.org/u/mykerinos1)\
**Post date:** [24 August 2020 12:36 UTC](https://discourse.nodered.org/t/collect-http-adress/31944/10 "2020-08-24T12:36:20Z")

</div>

![Capture1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/2/e27fcb9bf744168aaee0fc05e561ff3402f9f87b.jpeg)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [24 August 2020 12:43 UTC](https://discourse.nodered.org/t/collect-http-adress/31944/11 "2020-08-24T12:43:15Z")

</div>

So, number of issues.

1. You have moved payload to URL - BUT - the payload is NOT a URL (its an object)  
a URL must be a string like `http://xxxxxxxxx/` but clearly you can see in **your picture** , URL is an `object` full of stuff (not a string!)

2. You did NOT put a debug on EVERY output of EVERY node

> [@Steve-Mcl](#):
>
> Put a debug set to show complete message on **EVERY** output of **EVERY** node

1. You did not expand the debug objects fully as requested...

> [@Steve-Mcl](#):
>
> Expand EVERY part of the debug message

I'm afraid if you dont follow my requests, I cannot help you.

---

<div class="post-metadata">

**Author:** ![mykerinos1](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mykerinos1/32/46877_2.png) [@mykerinos1](https://discourse.nodered.org/u/mykerinos1)\
**Post date:** [24 August 2020 12:52 UTC](https://discourse.nodered.org/t/collect-http-adress/31944/12 "2020-08-24T12:52:32Z")

</div>

I m sorry for that.  
i do my best to give you your request

 ![Capture1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/b/7bc81ea71d62b2ee37fa64833499ceb04a25b3de.jpeg)

in yellow the http i want

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [24 August 2020 13:14 UTC](https://discourse.nodered.org/t/collect-http-adress/31944/13 "2020-08-24T13:14:08Z")

</div>

Questions...

1. Does that "Execution API" have any options on how it formats output data? Can you provide a screen shot of its settings?

2. Can you post a copy of the output of "Execution API"

3. remove sensitive info (change sensitive parts to xxxxxxxx then paste the output in a reply

`````  
`paste copied code between 3 back ticks like this to prevent it being mangled by the forum`  
`````

---

<div class="post-metadata">

**Author:** ![mykerinos1](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mykerinos1/32/46877_2.png) [@mykerinos1](https://discourse.nodered.org/u/mykerinos1)\
**Post date:** [24 August 2020 13:21 UTC](https://discourse.nodered.org/t/collect-http-adress/31944/14 "2020-08-24T13:21:03Z")

</div>

1. i don't think

2. 

```auto
Parameter name: "api-key" has value "xxxx"Parameter name: "api-secret" has value "xxxx"Parameter name: "station-id" has value "xxxx"Parameter name: "t" has value "1598273300"Data string to hash is: "api-keyajmnxiysttgggzjwkxj6ajghlngti1xestation-id90419t1598273300"API Signature is: "331346626874a12e75ede06903307f41651af42878c6d3fbaf74ce9b5e709ecd"v2 API URL: https://api.weatherlink.com/v2/current/90419?api-key=ajmnxiysttgggzjwkxj6ajghlngti1xe&api-signature=331346626874a12e75ede06903307f41651af42878c6d3fbaf74ce9b5e709ecd&t=1598273300

```

---

<div class="post-metadata">

**Author:** ![mykerinos1](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mykerinos1/32/46877_2.png) [@mykerinos1](https://discourse.nodered.org/u/mykerinos1)\
**Post date:** [24 August 2020 13:25 UTC](https://discourse.nodered.org/t/collect-http-adress/31944/15 "2020-08-24T13:25:08Z")

</div>

Look this we were speaking few mont ago maybe it can help

> [@Collect https address](https://discourse.nodered.org/t/collect-https-address/27329):
>
> Hello , i use node python to launch a progamm wich create a unique HTTP each time i launch it. i would like to collect only The last link or better launch it directly. thanks a lot How can i do ?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [24 August 2020 13:41 UTC](https://discourse.nodered.org/t/collect-http-adress/31944/16 "2020-08-24T13:41:41Z")

</div>

I'd forgotton that thread.

So question time...

1. Is that "Execution API" calling a python function?
2. Could you modify the python script to return VALID JSON
3. Could the URL be computed in node-red (i.e. do what the python does in pure node-red)

---

<div class="post-metadata">

**Author:** ![mykerinos1](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mykerinos1/32/46877_2.png) [@mykerinos1](https://discourse.nodered.org/u/mykerinos1)\
**Post date:** [24 August 2020 13:46 UTC](https://discourse.nodered.org/t/collect-http-adress/31944/17 "2020-08-24T13:46:01Z")

</div>

1. yes it launch a python programm
2. i dont know . i dont remember i have to do that last time  
3 i dont know 🙄

---

<div class="post-metadata">

**Author:** ![mykerinos1](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mykerinos1/32/46877_2.png) [@mykerinos1](https://discourse.nodered.org/u/mykerinos1)\
**Post date:** [24 August 2020 13:48 UTC](https://discourse.nodered.org/t/collect-http-adress/31944/18 "2020-08-24T13:48:02Z")

</div>

i have to go for today. thanks for your help

---

<div class="post-metadata">

**Author:** ![mykerinos1](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mykerinos1/32/46877_2.png) [@mykerinos1](https://discourse.nodered.org/u/mykerinos1)\
**Post date:** [27 August 2020 16:06 UTC](https://discourse.nodered.org/t/collect-http-adress/31944/19 "2020-08-27T16:06:00Z")

</div>

Hello.Just for your information. i found the solution. i have to modify python programm . i corrected the programm just to appear the link when i execute it.then i can move it to msg payload to msg url . Then http request and i have my result  
Thanks for your help

---

<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:** [26 October 2020 16:06 UTC](https://discourse.nodered.org/t/collect-http-adress/31944/20 "2020-10-26T16:06:02Z")

</div>

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