# No response from TCP request

**URL:** https://discourse.nodered.org/t/no-response-from-tcp-request/60597
**Category:** General
**Created:** [31 March 2022 15:46 UTC](https://discourse.nodered.org/t/no-response-from-tcp-request/60597 "2022-03-31T15:46:25Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![nygma2004](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nygma2004/32/1308_2.png) [@nygma2004](https://discourse.nodered.org/u/nygma2004)
#### Post date: [31 March 2022 15:46 UTC](https://discourse.nodered.org/t/no-response-from-tcp-request/60597/1 "2022-03-31T15:46:25Z")

</div>

I have a home automation server that I can communicate with simply using a TCP connection. When I test it in putty, it looks simple:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/1/91739fba7490633643e6dfd67ca8cf184ffff795.png)  
I send `GET 1` and I get the data back for device 1, I send `GET 2` and get the data for another device.

I did this very simple flow:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/c/7c84a8c666e5653ce2f0ca38423e29d4ee36ffcc.png)  
I click on inject and nothing comes out in the debug node.

Looks very simple, but I am not sure what I did wrong...

---

<div class="post-metadata">

### Author: ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)
#### Post date: [31 March 2022 16:05 UTC](https://discourse.nodered.org/t/no-response-from-tcp-request/60597/2 "2022-03-31T16:05:54Z")

</div>

Are you using port 10000 when using putty as well?

---

<div class="post-metadata">

### Author: ![nygma2004](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nygma2004/32/1308_2.png) [@nygma2004](https://discourse.nodered.org/u/nygma2004)
#### Post date: [31 March 2022 16:20 UTC](https://discourse.nodered.org/t/no-response-from-tcp-request/60597/3 "2022-03-31T16:20:40Z")

</div>

Yes, I am using the same port.

---

<div class="post-metadata">

### Author: ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)
#### Post date: [31 March 2022 16:28 UTC](https://discourse.nodered.org/t/no-response-from-tcp-request/60597/4 "2022-03-31T16:28:38Z")

</div>

Try this (your response from putty is 18 characters)  
 ![Screenshot-8](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/e/fe2d6aa17e11d271c027c500195cd2d099149359.png)

---

<div class="post-metadata">

### Author: ![nygma2004](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nygma2004/32/1308_2.png) [@nygma2004](https://discourse.nodered.org/u/nygma2004)
#### Post date: [31 March 2022 17:29 UTC](https://discourse.nodered.org/t/no-response-from-tcp-request/60597/5 "2022-03-31T17:29:01Z")

</div>

Nothing. I tried all options, and never get anything in the debug view. I was also monitoring node-red-log but did not see any errors.

---

<div class="post-metadata">

### Author: ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)
#### Post date: [31 March 2022 17:50 UTC](https://discourse.nodered.org/t/no-response-from-tcp-request/60597/6 "2022-03-31T17:50:50Z")

</div>

Can you try a change node between the inject node and the TCP request node  
adding a linefeed to the payload, like this:

![Screenshot-9](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/9/29b61e117a9bb9e4d638be9c37384e7d15e1b3a5.png)

---

<div class="post-metadata">

### Author: ![nygma2004](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nygma2004/32/1308_2.png) [@nygma2004](https://discourse.nodered.org/u/nygma2004)
#### Post date: [31 March 2022 19:17 UTC](https://discourse.nodered.org/t/no-response-from-tcp-request/60597/7 "2022-03-31T19:17:23Z")

</div>

Damn, I could have looked at that for ages and still not realize what is wrong. Thanks a lot.  
The correct syntax is:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/8/d8c726686fe66a0d52553230851057836b8e0b7a.png)

---

<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: [14 April 2022 19:17 UTC](https://discourse.nodered.org/t/no-response-from-tcp-request/60597/8 "2022-04-14T19:17:41Z")

</div>

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