nickoala / telepot

Python framework for Telegram Bot API
MIT License
2.43k stars 474 forks source link

ssl error #122

Closed efazati closed 8 years ago

efazati commented 8 years ago

my app receive some things like this. how fix it?

SSLError: hostname 'api.telegram.org' doesn't match either of 'incapsula.com', '*.adpost.com', '*.aws.toyota.com', '*...

nickoala commented 8 years ago

It seems your network is restricting access to some domains.

Open a browser, enter URL (after replacing token): https://api.telegram.org/bot<token>/getMe

What do you see?

efazati commented 8 years ago

{"ok":true,"result":{"id":...,"first_name":"...","username":"..._bot"}}

every things work fine but when many requests come to python we catch these error

nickoala commented 8 years ago

Ok, it seems like your network is not blocking access to api.telegram.org. You said the SSLError only occurs when the program is handling many requests, if I understand correctly.

...... I really have no clue ....... what do you think?