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

ydcv can't get the translate result #31

Open
Sherlock-Holo opened this issue Jul 17, 2022 · 11 comments
Open

ydcv can't get the translate result #31

Sherlock-Holo opened this issue Jul 17, 2022 · 11 comments

Comments

@Sherlock-Holo
Copy link
Contributor

use ydcv additive to translate this word, will return

Error looking-up word additive: Error("expected value", line: 1, column: 1)

also I try other words and all of them failed

use -r flag to show the raw json, will return

thread 'main' panicked at 'called Result::unwrap() on an Err value: Error("expected value", line: 1, column: 1)', src/main.rs:37:67
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

@bekcpear
Copy link

看起来是旧的 API 直接下线了

@Sherlock-Holo
Copy link
Contributor Author

is there a way to make ydcv-rs use the new api?

@bekcpear
Copy link

新的 api 说明, 有道词典 API
看介绍没有自主申请渠道,需要联系人工申请了

@bekcpear
Copy link

或者就和 肥猫的 一样,改成 文本翻译 的 api,然后私人申请后通过环境变量的形式导入来使用。

@condy0919
Copy link

原来如此……

@condy0919
Copy link

今天再看看,发现又能用了。。

@bekcpear
Copy link

我这依旧是无法使用

@WhiredPlanck
Copy link
Contributor

看起来和 IP (地区)有关系,我 env https_proxy=xxxx 通上代理后就能正常使用了

@bekcpear
Copy link

我这里 国内电信/美国/俄罗斯 地址都一样的报错,我已经不知道什么情况了;

DNS 结果:

@farseerfc
Copy link
Owner

我這邊舊 API 一直能用……也不知道什麼情況

@WhiredPlanck
Copy link
Contributor

在我挂着代理通了一次之后,之后每次都能不挂代理下正常使用了 ……

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants