smtp_to_telegram icon indicating copy to clipboard operation
smtp_to_telegram copied to clipboard

Seem unable to change Telegram API timeout value from 30 seconds

Open beastarman74 opened this issue 10 months ago • 0 comments

I have been having an issue with one of my security cameras sending email to telegram. It is located on a slower link and I believe it is likely the size of the image attachment that is taking longer than 30 seconds to be sent.

The error presented in the log is:

{"error":"`read tcp 172.30.0.3:2525->192.168.1.59:47044: i/o timeout","level":"warning","msg":"Error reading data","time":"2024-04-02T18:35:20Z"}

A screenshot showing from the initial connection to the error. image

  • I have attempted to pass an environment variable using: ST_TELEGRAM_MESSAGE_TIMEOUT
  • I have also changed the value in a local copy of the smtp_to_telegram.go code and built a local docker container using it
  • Changing the value makes no difference the timeout occurs always after 30 seconds each time.

Am I missing something?

Thanks.

beastarman74 avatar Apr 02 '24 18:04 beastarman74