K
K
Keril2020-06-25 00:07:17
Python
Keril, 2020-06-25 00:07:17

Pythonanywhere, aiogram why network is unreachable?

Wrote a small telegram bot. Everything works as it should on my PC. When I upload to pythonanywhere, I write the following

aiogram.utils.exceptions.NetworkError: Aiohttp client throws an error: ClientConnectorError: Cannot connect to host api.telegram.org:443 ssl:default [Network is unreachable]

Never used pythonanywhere before. I probably don't know something, please explain

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2020-06-25
@Keril

Firstly, limit external access for applications (as ScriptKiddo already said ),
Secondly, use webhooks.
There is also the option of switching to a paid tariff, or switching to a normal server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question