Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95437

Telegram_bot component "read timed out"

$
0
0

@jd1900 wrote:

I’m trying to use the telegram bot to send a video from a camera. Getting the video from the camera takes quite a long time (up to 90 seconds), and it times out most of the times.
I’m getting these errors:

2020-03-28 11:57:32 ERROR (SyncWorker_12) [homeassistant.components.telegram_bot] Can't load data into ByteIO: HTTPConnectionPool(host='192.168.xx.xx', port=8080): Read timed out. (read timeout=15)

2020-03-28 11:57:34 ERROR (SyncWorker_4) [homeassistant.components.telegram_bot] Can't send file with kwargs: {'message': 'New video', 'caption': 'New video', 'url': 'http://192.168.xx.xx:8080/cgi-bin/getlastrecordedvideo.sh?oldness=-2'}

2020-03-28 11:58:57 ERROR (SyncWorker_13) [homeassistant.components.telegram_bot] Error sending file: urllib3 HTTPError ('Connection aborted.', timeout('The write operation timed out')). Args: (2635854, <_io.BytesIO object at 0xad3740f0>), kwargs: {'caption': 'New video', 'parse_mode': 'Markdown', 'disable_notification': False, 'disable_web_page_preview': None, 'reply_to_message_id': None, 'reply_markup': None, 'timeout': None}

How could I increase the timeout to avoid getting this error?
Camera is quite slow, and, in addition, the script from the camera waits until the video is recorded. Thus the maximum up to 75 seconds.

Is there a way to bypass this error?

PS. I’m using Home Assistant (former hassio) installation in the RPi 4.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95437

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>