code 200 但是 null
freejool opened this issue · 4 comments
freejool commented
➜ ~ curl -X POST 'http://localhost:1188/translate' -H 'Content-Type:application/json' -d '{
"text": "alternatives",
"source_lang":"EN",
"target_lang": "ZH"
}'
{"alternatives":null,"code":200,"data":"","id":8378427666}%
➜ ~ yay -Q deeplx-bin
deeplx-bin 0.8.0-1
Aug 19 12:22:42 pi-sxing deeplx[500]: [GIN] 2023/08/19 - 12:22:42 | 200 | 1.029138522s | 127.0.0.1 | POST "/translate"
使用 yay -S deeplx-bin
安装在 manjaro arm
以前是可以用的
missuo commented
I'll take a look when I'm free.
missuo commented
➜ ~ curl -X POST 'http://localhost:1188/translate' -H 'Content-Type:application/json' -d '{
"text": "alternatives",
"source_lang":"EN",
"target_lang": "ZH"
}'
{"alternatives":["替代产品","替代方案","替代"],"code":200,"data":"替代品","id":8392652017}
I tested it on my Mac, and everything is fine.
freejool commented
那么可能是哪里出了问题呢
lxysl commented
I have the same problem:
{"code":200,"data":"","id":8320022017}%