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

Is the API down? #179

Open
itkc7 opened this issue Feb 26, 2025 · 32 comments
Open

Is the API down? #179

itkc7 opened this issue Feb 26, 2025 · 32 comments

Comments

@itkc7
Copy link

itkc7 commented Feb 26, 2025

Recently I have been able to use this wonderful platform without any issues. Today I keep encountering "{"code":503,"message":"Translation failed"}%"

@missuo
Copy link
Member

missuo commented Feb 26, 2025

It seems that I have encountered the same problem, checking.

@missuo missuo pinned this issue Feb 26, 2025
@iG8R
Copy link

iG8R commented Feb 27, 2025

The same issue here.

@lyskywalker
Copy link

+1,can be solved?

@jiaxp3144
Copy link

waiting for update...

@jv43
Copy link

jv43 commented Mar 1, 2025

Same issue.

@ZHLONG-CN
Copy link

Same, how to turn on debug logging

@missuo
Copy link
Member

missuo commented Mar 1, 2025

Fixed. 2400139

@missuo missuo closed this as completed Mar 1, 2025
@iG8R
Copy link

iG8R commented Mar 1, 2025

Unfortunately, it only worked for a couple of hours before the same 503 error popped up again.

Image

@missuo missuo unpinned this issue Mar 2, 2025
@osenvosem
Copy link

Works for the first request only.

Image

The issue seems unresolved. Reopen the issue please.

@missuo missuo reopened this Mar 2, 2025
@missuo
Copy link
Member

missuo commented Mar 2, 2025

@iG8R @osenvosem It seems that we are unable to reproduce your issue. Can you provide detailed reproduction steps? And please confirm the version you are using.

@frying52
Copy link

frying52 commented Mar 2, 2025

curl -X POST 'http://localhost:1188/v2/translate'
--header 'Authorization: DeepL-Auth-Key [yourAccessToken]'
--header 'Content-Type: application/json'
--data '{
"text": [
" Czekam już ponad miesiąc!"
],
"target_lang": "ZH"
}'

Developed by sjlleo [email protected] and missuo [email protected].
[GIN] 2025/03/02 - 10:37:57 | 503 | 1.239518217s | 10.1.12.3 | POST "/translate"
[GIN] 2025/03/02 - 10:38:05 | 503 | 5.917046238s | 10.1.12.3 | POST "/translate"
[GIN] 2025/03/02 - 10:40:12 | 503 | 3.293324473s | 10.1.20.4 | POST "/translate"
[GIN] 2025/03/02 - 10:40:14 | 503 | 1.499507029s | 10.1.20.4 | POST "/translate"
[GIN] 2025/03/02 - 10:40:16 | 503 | 2.540156816s | 10.1.20.4 | POST "/translate"
[GIN] 2025/03/02 - 10:43:33 | 503 | 1.243982222s | 43.139.80.25 | POST "/translate"
[GIN] 2025/03/02 - 10:43:46 | 503 | 1.213554277s | 43.139.80.25 | POST "/translate"
[GIN] 2025/03/02 - 10:44:43 | 503 | 1.575093556s | 10.1.12.3 | POST "/translate"
[GIN] 2025/03/02 - 10:45:39 | 503 | 1.225455014s | 172.17.0.1 | POST "/v2/translate"
[GIN] 2025/03/02 - 10:45:43 | 503 | 1.497694117s | 172.17.0.1 | POST "/v2/translate"
[GIN] 2025/03/02 - 10:45:43 | 503 | 1.312478605s | 10.1.20.4 | POST "/translate"
[GIN] 2025/03/02 - 10:46:28 | 503 | 1.48713896s | 10.1.20.4 | POST "/translate"

@frying52
Copy link

frying52 commented Mar 2, 2025

[root@VM-12-3-opencloudos ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0eac8ff0c6db ghcr.io/owo-network/deeplx:latest "/app/deeplx" 10 minutes ago Up 10 minutes 0.0.0.0:1188->1188/tcp, :::1188->1188/tcp charming_noether

@lamcodes
Copy link

lamcodes commented Mar 2, 2025

@iG8R @osenvosem It seems that we are unable to reproduce your issue. Can you provide detailed reproduction steps? And please confirm the version you are using.

使用沉浸式翻译,v1接口,会出现503。手动使用api调用测试,可以正常响应。是不是并发高会出现这个问题。

@Horitide
Copy link

Horitide commented Mar 2, 2025

I also have the same problem.

Image
Sorry, I am not familiar with this program and do not know how to provide more information.

@missuo
Copy link
Member

missuo commented Mar 2, 2025

It's working fine on my end, so I have no idea how to fix it. Also, I'm traveling and don't have time to fix this.

If someone can submit a PR, I will review and merge it ASAP.

@iG8R
Copy link

iG8R commented Mar 2, 2025

@missuo
In the screencast, i used the following extension - https://github.com/immersive-translate/immersive-translate/

DeepLX-503-issue-Video_2025-03-02_16-02-49.mp4

@missuo
Copy link
Member

missuo commented Mar 2, 2025

@missuo
In the screencast, i used the following extension - https://github.com/immersive-translate/immersive-translate/

DeepLX-503-issue-Video_2025-03-02_16-02-49.mp4

Please read the DeepLX official documentation carefully. We do not recommend integration with Immersive Translate.

@iG8R
Copy link

iG8R commented Mar 2, 2025

@missuo

Please read the DeepLX official documentation carefully. We do not recommend integration with Immersive Translate.

But it worked perfectly fine until recently, and as you can see, it still works during manual service checks, even after numerous 503 errors.

@iG8R
Copy link

iG8R commented Mar 2, 2025

@missuo
Is there any debug mode in DeepLX with advanced logging to be able to localize this issue?

@zhangsherry
Copy link

But it worked perfectly fine until recently, and as you can see, it still works during manual service checks, even after numerous 503 errors.

I've tested and find it works well with Kiss Translator, while with Immersive Translate here comes error 503, so the problem may be not related to DeepLX, but Immersive Translate.

@iG8R
Copy link

iG8R commented Mar 2, 2025

I've tested and find it works well with Kiss Translator, while with Immersive Translate here comes error 503, so the problem may be not related to DeepLX, but Immersive Translate.

Everything worked perfectly until four days ago, when a 503 error started popping up for other users as well, even those not using Immersive Translate.

@iG8R
Copy link

iG8R commented Mar 2, 2025

Hm... with pot-desktop https://github.com/pot-app/pot-desktop DeepLX works fine.

@iG8R
Copy link

iG8R commented Mar 2, 2025

Turns out, the issue stemmed from the "Enable Rich Text Translation" setting in Immersive Translate.
Disabling that seems to have resolved everything.

@missuo
Copy link
Member

missuo commented Mar 2, 2025

Turns out, the issue stemmed from the "Enable Rich Text Translation" setting in Immersive Translate.
Disabling that seems to have resolved everything.

I will take a look at it later and adapt it to the official rich text translation. DeepLX has this feature, but the activation method may be different. I will adapt it.

@Gol2dragon
Copy link

I have 4 vps running Deeplx service, 2 vps is working well, and another 2 return "503". They are all installed latest version v1.0.6. They are all working well yesterday after upgrading to v1.0.6, but 2 of them are found not woring well this morning.

@skeemolesen
Copy link

I'm also having some issues, the first 3 lines, in Subtitel Edit, works, then goes to error: 503

Image

@OwO996
Copy link

OwO996 commented Mar 5, 2025

在通过 pot 翻译软件使用的时候,只能翻译四五次左右,就会反馈 503。

@ZHLONG-CN
Copy link

Turns out, the issue stemmed from the "Enable Rich Text Translation" setting in Immersive Translate.
Disabling that seems to have resolved everything.

I will take a look at it later and adapt it to the official rich text translation. DeepLX has this feature, but the activation method may be different. I will adapt it.

I am trying to reproduce, and got this.
Encrease the API call throttle like 50 times/sec, the https://www2.deepl.com/jsonrpc API will return 429 staus code. The deeplx will return 503 status code.

I am not sure how to solve this, maybe it's Deepl throttle the IP.

REQUEST

POST http://192.168.3.101:8888/translate?token=123 HTTP/1.1
Host: 192.168.3.101:8888
User-Agent: Fiddler-Everywhere
Content-Length: 61

{"source_lang":"EN","target_lang":"ZH","text":"Hello World."}

RESPONSE

HTTP/1.1 503 Service Unavailable
Content-Type: application/json; charset=utf-8
Date: Sun, 16 Mar 2025 17:10:32 GMT
Content-Length: 43

{"code":503,"message":"Translation failed"}

REQUEST

POST https://www2.deepl.com/jsonrpc HTTP/2
host: www2.deepl.com
content-type: application/json
accept: */*
x-app-os-version: 18.4.0
x-app-device: iPhone16,2
x-app-build: 1627620
x-app-version: 25.1
accept-language: en-US,en;q=0.9
accept-encoding: gzip, deflate, br
user-agent: DeepL/1627620 CFNetwork/3826.500.62.2.1 Darwin/24.4.0
x-app-os-name: iOS
referer: https://www.deepl.com/
x-product: translator

{"jsonrpc":"2.0","method": "LMT_handle_jobs","id":8366267000,"params":{"commonJobParams":{"formality":"undefined","transcribe_as":"romanize","mode":"translate","wasSpoken":false,"advancedMode":false,"textType":"plaintext"},"lang":{"source_lang_user_selected":"auto","target_lang":"ZH","source_lang_computed":"EN"},"jobs":[{"kind":"default","preferred_num_beams":4,"raw_en_context_before":[],"raw_en_context_after":[],"sentences":[{"prefix":"","text":"Hello World.","id":0}]}],"timestamp":1742145030193}}

RESPONSE

HTTP/2 429
date: Sun, 16 Mar 2025 17:10:31 GMT
content-type: application/json; charset=utf-8
set-cookie: LMTBID=v2|94e417d4-a2fc-4eae-acde-f457b4e08ac6|8eb9a9c24dcb91f5a7c3c0260f861a67; Version=1; Path=/; Domain=.deepl.com; Secure; HttpOnly; Expires=Tue, 16-Sep-2025 00:00:00 GMT
access-control-expose-headers: Server-Timing, X-Trace-ID
x-trace-id: e054a1c9aee741398e2b612cef4f5961
server-timing: l7_lb_tls;dur=299, l7_lb_idle;dur=299, l7_lb_receive;dur=3, l7_lb_total;dur=303
strict-transport-security: max-age=63072000; includeSubDomains; preload

{"jsonrpc":"2.0","id":-223667592,"error":{"code":1042911,"message":"Too many requests"}}

@iG8R
Copy link

iG8R commented Mar 16, 2025

At first, disabling "Enable translation with formatting" helped, but now it only works for the first 4 requests, after which DeepLX starts responding with only error 503.

@iG8R
Copy link

iG8R commented Mar 17, 2025

I brought up this issue in the Immersive Translate thread and was advised to ask if DeepLX supports the tag_handling parameter. immersive-translate/immersive-translate#2626 (comment)

tag_handling: "html"

@CliffHan
Copy link

I use deeplx to translate english articles, one or two a day.

With v1.0.6 pulled from docker, it worked for several days, but it stopped working while translating today.

503 error.

@cancundeyingzi
Copy link

Imagepython

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