-
-
Notifications
You must be signed in to change notification settings - Fork 127
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
测试翻译引擎出错, [WinError 10061] 由于目标计算机积极拒绝,无法连接。 #129
Comments
|
Calibre 没有设置代理的地方,它只会读取系统环境变量中的代理配置(比如你设置的全局代理)。插件提供了代理设置功能,开启后插件会优先使用这个代理。 从截图上看,你设置的全局代理是 另外,如果你使用的代理是通过规则路由的,还需要确保翻译引擎的 API 在代理范围内。 |
@EdisonWendy 你开启的是全局模式,应该是和规则没关系了。不过在你提供的截图上,我注意到有和代理相关的用户名和密码信息,你为 HTTP 代理设置用户名和密码了吗? |
并没有,那个用户名和密码是我随意填的,只是为了让命令走完看看有没有提示连接问题。 |
@EdisonWendy 有试过插件中的代理设置吗?我在 Windows 上测试,使用全局代理确实会超时,用插件中的代理设置没问题。 |
这个我之前也试过,在插件中设置代理测试成功,倒是转到Google翻译引擎那一个标签去测试就还是老问题显示超时,但是是秒显示,比没在插件里面开启代理的时候快 |
@EdisonWendy 这个客户端的 HTTP 代理端口应该是 21882,更改后再试试看。 |
|
可以了,前面的代理设置没注意保存,重新设置了一下就好了,端口确实要是21882才行 |
插件无法正常使用全局代理的问题已在提交 2474bcc 中修复。你可以下载测试下面这个版本: |
谢谢,插件能覆盖安装吗?还是先卸载旧的插件再安装此版本? |
@EdisonWendy 可以覆盖安装,但是要注意需要重启 Calibre 才能生效。 |
感谢各位,没想到回复如此积极,也有朋友遇到类似的问题,那我这边今天继续试了一下,确实是代理问题,通过在“通用”tab中设置代理后,可以读取到chat翻译的返回,google free同理,希望遇到问题的朋友可以参考,同时感谢作者提供如此好的插件,方便大家的外语学习! |
calibre 版本号:6.26
ebook translator版本号:v2.1.4
点击"引擎"tab页后,使用google free或者chatgpt方式后,网络有开启全局代理(也有尝试设置"通用"tab页中的开启http代理),但点击测试后,会出现如下错误堆栈:
Traceback (most recent call last):
File "calibre_plugins.ebook_translator.components.engine", line 66, in translate_text
File "calibre_plugins.ebook_translator.engines.chatgpt", line 89, in translate
File "calibre_plugins.ebook_translator.engines.base", line 181, in get_result
Exception: 无法解析返回的响应。原始数据:
Traceback (most recent call last):
File "calibre_plugins.ebook_translator.engines.base", line 171, in get_result
File "mechanize_mechanize.py", line 257, in open
File "mechanize_mechanize.py", line 287, in _mech_open
File "mechanize_opener.py", line 193, in open
File "mechanize_urllib2_fork.py", line 425, in _open
File "mechanize_urllib2_fork.py", line 414, in _call_chain
File "mechanize_urllib2_fork.py", line 1283, in https_open
File "mechanize_urllib2_fork.py", line 1240, in do_open
urllib.error.URLError: <urlopen error [WinError 10061] 由于目标计算机积极拒绝,无法连接。>
The text was updated successfully, but these errors were encountered: