windkh / node-red-contrib-telegrambot

Telegram bot nodes for node-red.
Other
264 stars 117 forks source link

Not working on 2.2.2 - "Error stopping node: Close timed out" #247

Closed ozonejunkieau closed 2 years ago

ozonejunkieau commented 2 years ago

I'm having some issues getting this setup on my NodeRed deployment.

My installation is running via Podman using the 2.2.2 standard image from dockerhub, with a persistent data directory.

After following the instructions for configuration, I get... nothing?

For what it's worth, I also have the following installed:

        "node-red-contrib-avr-yamaha": "^0.8.9",
        "node-red-contrib-hysteresis": "~0.3.0",
        "node-red-contrib-influxdb": "~0.6.1",
        "node-red-contrib-node-lifx": "~0.10.1",
        "node-red-contrib-samsung-tv-control": "~1.3.15",
        "node-red-contrib-tasmota": "~0.9.12",
        "node-red-contrib-telegrambot": "~11.3.0",
        "node-red-contrib-tplink": "~1.0.0"

None of these seem likely to be an issue, but I'm at my wits end a bit here. Any suggestions on how to debug this further would be greatly appreciated. Thanks in advance.

windkh commented 2 years ago

@ozonejunkieau hi, I guess the code that polls the TG server in hanging somehow. When redeploying the following like does not return from stopPolling. self.telegramBot.stopPolling().then(setStatusDisconnected);

Hm normally this would indicate a network problem.... I guess that I can not really provide a solution from what I see from here.

grahamwoan commented 2 years ago

On start-up, the node-red log says:

### The "request" library is not installed automatically anymore.
### But is a dependency of "request-promise".
### Please install it with:
### npm install request --save

and I had to install request manually to get telegrambot working again.

windkh commented 2 years ago

should be fixed in 11.5.0