xinebf / google-translate-for-goldendict

Add Google translate to GoldenDict
GNU General Public License v3.0
276 stars 57 forks source link

Errrrrrrrrror: Expecting value: line 1 column 1 (char 0) #48

Open six-wood opened 1 year ago

six-wood commented 1 year ago

配置代理后一段时间能用,但之后继续采用代理出现了这种错误

Errrrrrrrrror: Expecting value: line 1 column 1 (char 0)

取消代理则是

Errrrrrrrrror: HTTPSConnectionPool(host='translate.googleapis.com', port=443): Max retries exceeded with url: /translate_a/single?client=gtx&sl=auto&tl=zh-CN&hl=en&dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=sos&dt=ss&dt=t&ssel=0&tsel=0&kc=1&tk=547524.975478&q=test (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fd47b9ea2f0>, 'Connection to translate.googleapis.com timed out. (connect timeout=5)'))

所以是请问代理的问题还是google的问题,有没有什么办法能够解决

navono commented 1 year ago

我也是突然就这样了

six-wood commented 1 year ago

我换了个命令,不再指明网址,现在能用了 python3 -m googletranslate zh-CN %GDWORD% -p 127.0.0.1:7890