timed out
opened this issue · comments
Deleted user commented
foyou commented
刚刚测试没有问题,你设置代理了吗?
Deleted user commented
以下为报错信息
File "C:\Users\Hacke\AppData\Local\Programs\Python\Python310\lib\site-packages\pygtrans\Translate.py", line 149, in translate
response = self.__translate(q=q, target=target, source=source, fmt=fmt, v='1.0')
File "C:\Users\Hacke\AppData\Local\Programs\Python\Python310\lib\site-packages\pygtrans\Translate.py", line 172, in __translate
response = self.session.post(
File "C:\Users\Hacke\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 577, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "C:\Users\Hacke\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 529, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\Hacke\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "C:\Users\Hacke\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\adapters.py", line 507, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='translate.google.com', port=443): Max retries exceeded with url: /translate_a/t?tl=zh-CHS&sl=auto&ie=UTF-8&oe=UTF-8&client=at&dj=1&format=html&v=1.0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001BE136F5F00>, 'Connection to translate.google.com timed out. (connect timeout=None)'))
从 Windows 版邮件<https://go.microsoft.com/fwlink/?LinkId=550986>发送
发件人: ***@***.***>
发送时间: 2022年1月28日 20:32
收件人: ***@***.***>
抄送: ***@***.***>; ***@***.***>
主题: Re: [foyoux/pygtrans] timed out (Issue #16)
刚刚测试没有问题,你设置代理了吗?
―
Reply to this email directly, view it on GitHub<#16 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AXMNM5U53WHWFMJKN6B5WPDUYKEFRANCNFSM5NATRDRA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
foyou commented
就是代理有问题
foyou commented
请确保 requests.get https://google.com 能成功
Deleted user commented
我想将translate.google.com改为translate.google.cn我需要如何更改默认值
从 Windows 版邮件<https://go.microsoft.com/fwlink/?LinkId=550986>发送
…________________________________
发件人: foyou ***@***.***>
发送时间: Friday, January 28, 2022 8:38:46 PM
收件人: foyoux/pygtrans ***@***.***>
抄送: Hacker-Jeek ***@***.***>; Author ***@***.***>
主题: Re: [foyoux/pygtrans] timed out (Issue #16)
请确保 requests.get https://google.com 能成功
―
Reply to this email directly, view it on GitHub<#16 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AXMNM5VY3N54YCF3RU37PIDUYKE5NANCNFSM5NATRDRA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
Deleted user commented
对不起, 我没注意, 打扰了
从 Windows 版邮件<https://go.microsoft.com/fwlink/?LinkId=550986>发送
…________________________________
发件人: foyou ***@***.***>
发送时间: Friday, January 28, 2022 10:08:02 PM
收件人: foyoux/pygtrans ***@***.***>
抄送: Hacker-Jeek ***@***.***>; Author ***@***.***>
主题: Re: [foyoux/pygtrans] timed out (Issue #16)
同志,你不看说明的吗?
如何设置这里面有 #8<#8>
设置了也没用 #8<#8>
―
Reply to this email directly, view it on GitHub<#16 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AXMNM5R43PL4ORAXPYYT5G3UYKPMFANCNFSM5NATRDRA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
foyou commented