Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConnectionRefusedError: [Errno 111] Connect call failed ('149.154.167.51', 443) #261

Open
rpgangajaliya opened this issue Jul 13, 2023 · 3 comments

Comments

@rpgangajaliya
Copy link

Attempt 1 at connecting failed: ConnectionRefusedError: [Errno 111] Connect call failed ('149.154.167.51', 443)
Attempt 2 at connecting failed: ConnectionRefusedError: [Errno 111] Connect call failed ('149.154.167.51', 443)
Attempt 3 at connecting failed: ConnectionRefusedError: [Errno 111] Connect call failed ('149.154.167.51', 443)
Attempt 4 at connecting failed: ConnectionRefusedError: [Errno 111] Connect call failed ('149.154.167.51', 443)
Attempt 5 at connecting failed: ConnectionRefusedError: [Errno 111] Connect call failed ('149.154.167.51', 443)
Attempt 6 at connecting failed: ConnectionRefusedError: [Errno 111] Connect call failed ('149.154.167.51', 443)
Traceback (most recent call last):
File "/home/Rajpatel29/main.py", line 23, in
client.start()
File "/home/Rajpatel29/.local/lib/python3.10/site-packages/telethon/client/auth.py", line 128, in start
else self.loop.run_until_complete(coro)
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "/home/Rajpatel29/.local/lib/python3.10/site-packages/telethon/client/auth.py", line 135, in _start
await self.connect()
File "/home/Rajpatel29/.local/lib/python3.10/site-packages/telethon/client/telegrambaseclient.py", line 538, in connect
if not await self._sender.connect(self._connection(
File "/home/Rajpatel29/.local/lib/python3.10/site-packages/telethon/network/mtprotosender.py", line 132, in connect
await self._connect()
File "/home/Rajpatel29/.local/lib/python3.10/site-packages/telethon/network/mtprotosender.py", line 258, in _connect
raise ConnectionError('Connection to Telegram failed {} time(s)'.format(self._retries))
ConnectionError: Connection to Telegram failed 5 time(s)

@rpgangajaliya
Copy link
Author

error shows in pythonanywhere.....

code running good in local machine

but in pythonanywhere it show above error any solution please....?

@Dubldum
Copy link

Dubldum commented Oct 8, 2023

Was it possible to run the code in pythonanywhere? I have the same problem and the same question.

@BenBencion
Copy link

This problem just disappears if you have PAID account PythonAnywhere. So simple...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants