UlionTse / translators

🌏🌍🌎Translators🌎🌍🌏 is a library that aims to bring free, multiple, enjoyable translations to individuals and students in Python. Translators是一个旨在用Python为个人和学生带来免费、多样、愉快翻译的库。
https://pypi.org/project/translators/
GNU General Public License v3.0
1.62k stars 189 forks source link

[Bug]: Misleading error message #150

Closed ManuelSchneid3r closed 9 months ago

ManuelSchneid3r commented 9 months ago

Debug Tips

What happened?

I get

02:13:10 [warn:albert.translators] "HTTPSConnectionPool(host='translate.google.com', port=443): Max retries exceeded with url: /_/TranslateWebserverUi/data/batchexecute (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f04b617e1d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))"

but acutally I cut the connection to test the timeout.

APP Version

5.8.9 iirc

Python Version

3.11

Runtime Environment

Linux Ubuntu

Country/Region

irrelevant

Relevant log output

No response

Screenshots

![DESCRIPTION](LINK.png)

Code of Conduct

UlionTse commented 9 months ago

@ManuelSchneid3r Hello,old friend. This message is from python library requests's error message. I choose to believe it, lot of laugh.