Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

新版本 youdao 报错,已经填写了密钥 #18

Closed
RaffeYang opened this issue Sep 23, 2022 · 7 comments
Closed

新版本 youdao 报错,已经填写了密钥 #18

RaffeYang opened this issue Sep 23, 2022 · 7 comments

Comments

@RaffeYang
Copy link
Contributor

RaffeYang commented Sep 23, 2022

版本号2.3.0

@github-actions
Copy link

Thank you for your first issue contribution! Jax0rz

@tisfeng
Copy link
Owner

tisfeng commented Sep 23, 2022

你好,请问具体报错信息是什么,贴一下错误日志?

@RaffeYang
Copy link
Contributor Author

你好,请问具体报错信息是什么,贴一下错误日志?

CleanShot 2022-09-23 at 23 17 16@2x

@tisfeng
Copy link
Owner

tisfeng commented Sep 23, 2022

这个报错,是有道接口无法认证你的证书,看起来像是你开启了 Use System Proxy,并且使用了抓包工具 MITM 导致?

@RaffeYang
Copy link
Contributor Author

RaffeYang commented Sep 23, 2022

这个报错,是有道接口无法认证你的证书,看起来像是你开启了 Use System Proxy,并且使用了抓包工具 MITM 导致?

对,我在用surge,MITM开启了;很奇怪今天这个新版本之前都是正常的。

@tisfeng
Copy link
Owner

tisfeng commented Sep 23, 2022

那就没问题,因为有道的接口会对请求证书做校验,而 Easydict 支持系统代理,如果又启用了系统代理就会导致这样。

一般情况不建议开启 Use System Proxy,除了使响应变慢外,还可能导致一些其他异常情况,如证书校验等问题(虽然我已尽力处理了一些场景。。)

@tisfeng
Copy link
Owner

tisfeng commented Sep 23, 2022

对,我在用surge,MITM开启了;很奇怪今天这个新版本之前都是正常的。

这其实是之前的一个小问题:开启系统代理需要一点时间(大约 0.5s),某些请求可能在开启代理之前就已经发出去了,所以才没有导致问题。

但我在 v2.3.0 版本修复了这个问题,目前如果打开了系统代理开关,那么所有请求都会等待系统代理开启后才发送。

@tisfeng tisfeng closed this as completed Sep 23, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants