# "TypeError: Cannot read properties of undefined (reading 'toString')" when sending reset to TCP node

**URL:** <https://discourse.nodered.org/t/typeerror-cannot-read-properties-of-undefined-reading-tostring-when-sending-reset-to-tcp-node/86176>\
**Category:** General\
**Created:** [5 March 2024 22:14 UTC](https://discourse.nodered.org/t/typeerror-cannot-read-properties-of-undefined-reading-tostring-when-sending-reset-to-tcp-node/86176 "2024-03-05T22:14:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![FloRu](https://avatars.discourse-cdn.com/v4/letter/f/db5fbb/32.png) [@FloRu](https://discourse.nodered.org/u/FloRu)\
**Post date:** [5 March 2024 22:14 UTC](https://discourse.nodered.org/t/typeerror-cannot-read-properties-of-undefined-reading-tostring-when-sending-reset-to-tcp-node/86176/1 "2024-03-05T22:14:23Z")

</div>

Continuing the discussion from [Force disconnection of TCP connection](https://discourse.nodered.org/t/force-disconnection-of-tcp-connection/82436/24):

Today I tried to disconnect the newly connected TCP request node (using 2 connections, one on port 1111 and the second to the same server, port 1112) and continue getting this error...

I tried both of these disconnect messages

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/6/461d1e2d0ff74fab10bde1ef5a3793ebf09620a2.png)

(only one each time), but always get this error message - what am I doing wrong?

Florian

---

<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:** [5 March 2024 22:34 UTC](https://discourse.nodered.org/t/typeerror-cannot-read-properties-of-undefined-reading-tostring-when-sending-reset-to-tcp-node/86176/2 "2024-03-05T22:34:20Z")

</div>

As a test, please try adding payload to the message (and set it as an empty string).

---

<div class="post-metadata">

**Author:** ![FloRu](https://avatars.discourse-cdn.com/v4/letter/f/db5fbb/32.png) [@FloRu](https://discourse.nodered.org/u/FloRu)\
**Post date:** [5 March 2024 23:39 UTC](https://discourse.nodered.org/t/typeerror-cannot-read-properties-of-undefined-reading-tostring-when-sending-reset-to-tcp-node/86176/3 "2024-03-05T23:39:10Z")

</div>

Hi Steve,

no, it only accepts the message like this without an error message:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/d/1de777a27dcfdbaa9b18fcb1ab6267ba76b7f621.png)

...but doesn't change anything in the configuration \> messages keep running in...

---

<div class="post-metadata">

**Author:** ![FloRu](https://avatars.discourse-cdn.com/v4/letter/f/db5fbb/32.png) [@FloRu](https://discourse.nodered.org/u/FloRu)\
**Post date:** [5 March 2024 23:45 UTC](https://discourse.nodered.org/t/typeerror-cannot-read-properties-of-undefined-reading-tostring-when-sending-reset-to-tcp-node/86176/4 "2024-03-05T23:45:31Z")

</div>

And it also doesn't change if I insert host / port into the request node...

---

<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:** [3 June 2024 23:46 UTC](https://discourse.nodered.org/t/typeerror-cannot-read-properties-of-undefined-reading-tostring-when-sending-reset-to-tcp-node/86176/5 "2024-06-03T23:46:11Z")

</div>

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