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

requests.exceptions.ConnectTimeout #59

Open
constantxyh opened this issue Oct 16, 2022 · 1 comment
Open

requests.exceptions.ConnectTimeout #59

constantxyh opened this issue Oct 16, 2022 · 1 comment

Comments

@constantxyh
Copy link

test code:

from google_trans_new import google_translator

translator = google_translator()
translate_text = translator.translate('สวัสดีจีน',lang_tgt='en')
print(translate_text)

======================================
error:

requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='translate.google.com', port=443): Max retries exceeded with url: /_/TranslateWebserverUi/data/batchexecute (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001CC5DB05348>, 'Connection to translate.google.com timed out. (connect timeout=5)'))

i have update the constant.py and google_trans_new.py.

@Jaylen-Lee
Copy link

same with you

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

2 participants