pyTelegramBotAPI icon indicating copy to clipboard operation
pyTelegramBotAPI copied to clipboard

ConnectionError

Open Malomalsky opened this issue 9 years ago • 5 comments

Please answer these questions before submitting your issue. Thanks!

  1. What version of pyTelegramBotAPI are you using? Latest
  2. What OS are you using? Windows 7
  3. What version of python are you using? 3.6.2 raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /bot404636181:***************************************/getUpdates?offset=1&timeout=20 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x02E1BDF0>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',))

Malomalsky avatar Sep 30 '17 11:09 Malomalsky

(util.py:64 PollingThread) ERROR - TeleBot: "ConnectionError occurred, args=(MaxRetryError("HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /bot450819306:********************************/getUpdates?offset=1&timeout=20 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x02DFCB30>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',))",),) Traceback (most recent call last):

Malomalsky avatar Sep 30 '17 11:09 Malomalsky

I think you're trying to send more than 30 messages per minute, then telegram bans you for a few minutes.

you must send less messages per minuteor sleep them a little.

alfilesnet avatar Sep 30 '17 14:09 alfilesnet

i also meet this problem. requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /bot439585328:****************/getMe (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa73fc39850>: Failed to establish a new connection: [Errno 110] Connection timed out',))

i dont know what had happend?

tonys111 avatar Nov 16 '17 02:11 tonys111

It's something like "soft ban". You need to wait sometimes and this problem will be solved

Malomalsky avatar Nov 16 '17 05:11 Malomalsky

It's something like "soft ban". You need to wait sometimes and this problem will be solved

I've waited for three years, but it still doesnt't working. I'm already fifteen, and my life is a garbage now, my mates are bullying me. So sad.

kovalexis15 avatar Sep 26 '18 20:09 kovalexis15