# Node-red-contrib-telegrambot polling error

**URL:** https://discourse.nodered.org/t/node-red-contrib-telegrambot-polling-error/59588
**Category:** General
**Created:** [9 March 2022 12:53 UTC](https://discourse.nodered.org/t/node-red-contrib-telegrambot-polling-error/59588 "2022-03-09T12:53:34Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![nico25](https://avatars.discourse-cdn.com/v4/letter/n/d2c977/32.png) [@nico25](https://discourse.nodered.org/u/nico25)
#### Post date: [9 March 2022 12:53 UTC](https://discourse.nodered.org/t/node-red-contrib-telegrambot-polling-error/59588/1 "2022-03-09T12:53:34Z")

</div>

This has beed discussed here before, but I couldn´t find a working solution for me.  
I tried to produce a simple echo with receiver and sender node like in the example.  
Unfortunately all I get is "polling error" from the nodes.

Error Message:  
EFATAL: Error: Client network socket disconnected before secure TLS connection was established

Running Nodered on a RaspberryPI and using a Proxy for internetaccess.

NR Version 2.2.2  
Node.js Version 14.19.0  
node-red-contrib-telegrambot 11.2.4

![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/b/2b51d042c8229af5732b7dd45c27af71d4b33a43.png)

---

<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: [9 March 2022 13:10 UTC](https://discourse.nodered.org/t/node-red-contrib-telegrambot-polling-error/59588/2 "2022-03-09T13:10:58Z")

</div>

Looks like you have created a feedback loop!  
Try disconnecting the nodes and inject a message into the sender node, and attach a debug node to the output of the receiver node.

---

<div class="post-metadata">

### Author: ![nico25](https://avatars.discourse-cdn.com/v4/letter/n/d2c977/32.png) [@nico25](https://discourse.nodered.org/u/nico25)
#### Post date: [9 March 2022 13:17 UTC](https://discourse.nodered.org/t/node-red-contrib-telegrambot-polling-error/59588/3 "2022-03-09T13:17:20Z")

</div>

That´s what I wanted to to in the first step. To check if communication works in general.  
Tried what you suggested, this it the Error Message in debug-tab:  
Caught exception in sender node:  
Error: EFATAL: Error: Client network socket disconnected before secure TLS connection was established  
when processing message:  
{"\_msgid":"24de97767221612a","payload":{"content":"Test","type":"message","options":{"text":"Test"}}}

---

<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: [9 March 2022 13:19 UTC](https://discourse.nodered.org/t/node-red-contrib-telegrambot-polling-error/59588/4 "2022-03-09T13:19:36Z")

</div>

I don't have TelegramBot set up here. I'm sure someone here who uses it will answer soon

---

<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: [9 March 2022 13:25 UTC](https://discourse.nodered.org/t/node-red-contrib-telegrambot-polling-error/59588/5 "2022-03-09T13:25:26Z")

</div>

Can you try it without a proxy?

---

<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: [9 March 2022 13:35 UTC](https://discourse.nodered.org/t/node-red-contrib-telegrambot-polling-error/59588/6 "2022-03-09T13:35:58Z")

</div>

> [@ghayne](#):
>
> Looks like you have created a feedback loop!

I just looked in the node documentation and that should actually work!

---

<div class="post-metadata">

### Author: ![nico25](https://avatars.discourse-cdn.com/v4/letter/n/d2c977/32.png) [@nico25](https://discourse.nodered.org/u/nico25)
#### Post date: [9 March 2022 13:45 UTC](https://discourse.nodered.org/t/node-red-contrib-telegrambot-polling-error/59588/7 "2022-03-09T13:45:23Z")

</div>

Unfortunately not. Using the proxy is the only way, the device can connect to the internet since it is in a company network. Browsing the web etc. works fine.

---

<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: [9 March 2022 14:03 UTC](https://discourse.nodered.org/t/node-red-contrib-telegrambot-polling-error/59588/8 "2022-03-09T14:03:30Z")

</div>

Talk to your network administrator, the proxy may be blocking ports that Telegram needs to operate.

---

<div class="post-metadata">

### Author: ![nico25](https://avatars.discourse-cdn.com/v4/letter/n/d2c977/32.png) [@nico25](https://discourse.nodered.org/u/nico25)
#### Post date: [10 March 2022 05:56 UTC](https://discourse.nodered.org/t/node-red-contrib-telegrambot-polling-error/59588/9 "2022-03-10T05:56:56Z")

</div>

I´m checking with IT-department right now, coming back here when I have results.

---

<div class="post-metadata">

### Author: ![windkh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/windkh/32/4713_2.png) [@windkh](https://discourse.nodered.org/u/windkh)
#### Post date: [10 March 2022 20:36 UTC](https://discourse.nodered.org/t/node-red-contrib-telegrambot-polling-error/59588/10 "2022-03-10T20:36:38Z")

</div>

Please turn on verbose logging and let us know what is printed there.

Can you please show your config node, so that we can see the settings?

---

<div class="post-metadata">

### Author: ![nico25](https://avatars.discourse-cdn.com/v4/letter/n/d2c977/32.png) [@nico25](https://discourse.nodered.org/u/nico25)
#### Post date: [14 March 2022 05:57 UTC](https://discourse.nodered.org/t/node-red-contrib-telegrambot-polling-error/59588/11 "2022-03-14T05:57:00Z")

</div>

Good morning,

verbose logging showed the same error as mentioned above:

> EFATAL: Error: Client network socket disconnected before secure TLS connection was established

I discussed the problem with our IT-Department on Friday and they think it´s most likely a problem caused by our proxy-server. It´s a pure http-proxy and therefore might not work for telegram.  
So I guess I can´t use this node in this project unfortunately.

---

<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: [13 May 2022 05:57 UTC](https://discourse.nodered.org/t/node-red-contrib-telegrambot-polling-error/59588/12 "2022-05-13T05:57:03Z")

</div>

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