Closed bairhys closed 2 months ago
Hm no idea... strange
Yeah very strange. I have used this module for probably a year now on RPi HAOS and been very reliable and fast. I ended up not using Node Red and instead making a python docker image with python-telegram-bot.
When I run Node Red docker container on Ubuntu with a basic flow including a Telegram sender, the Telegram sender reports a error
EFATAL: AggregateError
and no message is sent. When I run the exact same flow on Node Red docker container on Windows, it runs fine and message is sent. I am not sure why on Ubuntu messages won't send.I also use this module on a Node Red instance running on a RPi HaOS and sends messages fine there.
When I start a terminal session inside the Node Red docker container on Ubuntu, I can ping
api.telegram.org
fine so it doesn't seem to be a networking issue. Then I think, why is it working on Windows and not Ubuntu?When I read the Node Red docker container on Ubuntu logs, it shows a
Unhandled rejection RequestError: AggregateError
, the full error shown belowThe flow I am using to test is:
Where the function has this code inside:
This is the error shown from the docker container: