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

百度翻译在翻译一段文本时报错 #1356

Closed
PGuardRing opened this issue Mar 28, 2022 · 1 comment
Closed

百度翻译在翻译一段文本时报错 #1356

PGuardRing opened this issue Mar 28, 2022 · 1 comment
Labels
bug 外部依赖 此 issue 跟第三方扩展、软件、代码有关。
Milestone

Comments

@PGuardRing
Copy link

基本信息

划词翻译版本:8.7.3
浏览器版本:Firefox 98.0.2
操作系统:windows 10

重现问题的步骤

1.打开网站https://diskanalyzer.com/download?ref=upgrade
2.使用申请的标准版百度翻译密钥,选中一段文本翻译

实际行为

出现报错,我没有登陆所以没有翻译积分
图片

补充信息

选其他或部分文本翻译都不会出现这个
图片

@lmk123
Copy link
Member

lmk123 commented Mar 28, 2022

重现了,但无法解决。

出现这个问题的原因是百度翻译接口对你划选的这段话(且正好是这段话,少了或者多了都没问题)没有返回任何内容,甚至没有报错信息(如下图),所以划词翻译在尝试读取错误码(也就是error_code)的时候就报错了。

这是百度翻译的问题,我没法解决,我能做的就是改进一下报错信息,当出现空返回的情况给一个比较人性化的错误信息例如“百度翻译对这段文本没有返回翻译结果”。

截屏2022-03-28 下午2 17 06

@lmk123 lmk123 added the 外部依赖 此 issue 跟第三方扩展、软件、代码有关。 label Mar 28, 2022
@lmk123 lmk123 added this to the v8.8.0 milestone Mar 28, 2022
@lmk123 lmk123 modified the milestones: 优先级 P2, v10.0.1 Jun 20, 2023
@lmk123 lmk123 closed this as completed Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 外部依赖 此 issue 跟第三方扩展、软件、代码有关。
Projects
None yet
Development

No branches or pull requests

2 participants