Skip to content

fix: 503 too many requests#205

Merged
missuo merged 1 commit into
OwO-Network:mainfrom
NuanRMxi:main
Oct 3, 2025
Merged

fix: 503 too many requests#205
missuo merged 1 commit into
OwO-Network:mainfrom
NuanRMxi:main

Conversation

@NuanRMxi

@NuanRMxi NuanRMxi commented Oct 3, 2025

Copy link
Copy Markdown
Contributor

closed #204
After testing, simulating more request headers, the error "too many requests" can be alleviated

@missuo missuo merged commit 1f1c088 into OwO-Network:main Oct 3, 2025
2 checks passed
@ukushu

ukushu commented Oct 3, 2025

Copy link
Copy Markdown

Fresh install from terminal:

brew tap owo-network/brew  
brew install deeplx  
brew services start owo-network/brew/deeplx 

error:

DeepLXTranslate error: StatusCode=ServiceUnavailable
{"code":503,"message":"too many requests, your IP has been blocked by DeepL temporarily, please don't request it frequently in a short time"}
   at Nikse.SubtitleEdit.Core.AutoTranslate.DeepLXTranslate.<Translate>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Nikse.SubtitleEdit.Forms.Translate.MergeAndSplitHelper.<MergeAndTranslateIfPossible>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Nikse.SubtitleEdit.Forms.Translate.AutoTranslate.<buttonTranslate_Click>d__33.MoveNext()

@NuanRMxi

NuanRMxi commented Oct 3, 2025

Copy link
Copy Markdown
Contributor Author

Manually download the latest version from the release and try it out?

@ukushu

ukushu commented Oct 3, 2025

Copy link
Copy Markdown

same error on release v1.0.9 & v1.0.7

DeepLXTranslate error: StatusCode=ServiceUnavailable
{"code":503,"message":"too many requests, your IP has been blocked by DeepL temporarily, please don't request it frequently in a short time"}
   at Nikse.SubtitleEdit.Core.AutoTranslate.DeepLXTranslate.<Translate>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Nikse.SubtitleEdit.Forms.Translate.MergeAndSplitHelper.<MergeAndTranslateIfPossible>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Nikse.SubtitleEdit.Forms.Translate.AutoTranslate.<buttonTranslate_Click>d__33.MoveNext()

@NuanRMxi

NuanRMxi commented Oct 3, 2025

Copy link
Copy Markdown
Contributor Author

I am unable to reproduce this issue, perhaps you can provide the code you use to request the API. You can also try deploying to other places or using proxies.
image

@ukushu

ukushu commented Oct 3, 2025

Copy link
Copy Markdown

I'm using SubtitleEdit from another PC than DeepLX runned.

open any subtitle file in SubtitleEdit -> Menu->AutoTranslate-> choose "DeepLX" in top left corner -> set ip in bottom left corner -> press "translate" on top right corner

environment:
DeepLX runned on MacOS 26.0 (25A354)
SubtitleEdit v 4.0.13 runned on Windows 10 22H2 (build: 19045.6332)


terminal shows:

(base) uks@MacDementor deeplx % ./deeplx
DeepL X has been successfully launched! Listening on 0.0.0.0:1188
Developed by sjlleo <i@leo.moe> and missuo <me@missuo.me>.
[GIN] 2025/10/03 - 22:56:58 | 503 |    811.7515ms |    192.168.3.34 | POST     "/translate"
[GIN] 2025/10/03 - 22:56:59 | 503 |     562.111ms |    192.168.3.34 | POST     "/translate"
[GIN] 2025/10/03 - 22:57:03 | 503 |  479.083209ms |    192.168.3.34 | POST     "/translate"
[GIN] 2025/10/03 - 22:57:10 | 503 |  629.941167ms |    192.168.3.34 | POST     "/translate"

@NuanRMxi

NuanRMxi commented Oct 3, 2025

Copy link
Copy Markdown
Contributor Author

Your IP may indeed be restricted, please try changing your network environment
Before that, please run the following command on macOS to ensure that it is not a software issue:

curl -X POST http://localhost:1188/translate -H "Content-Type: application/json" -d '{
    "text": "Hello, world!",
    "source_lang": "EN",
    "target_lang": "ZH"
}'

@ukushu

ukushu commented Oct 3, 2025

Copy link
Copy Markdown

MacOS terminal test:

ver 1.0.7:

(base) uks@MacDementor ~ % curl -X POST http://localhost:1188/translate -H "Content-Type: application/json" -d '{
    "text": "Hello, world!",
    "source_lang": "EN",
    "target_lang": "ZH"
}'
{"code":503,"message":"too many requests, your IP has been blocked by DeepL temporarily, please don't request it frequently in a short time"}%                  
(base) uks@MacDementor ~ % 

ver 1.0.9:

(base) uks@MacDementor ~ % curl -X POST http://localhost:1188/translate -H "Content-Type: application/json" -d '{
    "text": "Hello, world!",
    "source_lang": "EN",
    "target_lang": "ZH"
}'
{"code":503,"message":"too many requests, your IP has been blocked by DeepL temporarily, please don't request it frequently in a short time"}%                  
(base) uks@MacDementor ~ % 

@info2soft

Copy link
Copy Markdown

v 1.1.0

curl -X POST http://localhost:1188/translate -H "Content-Type: application/json" -d '{

"text": "Hello, world!",
"source_lang": "EN",
"target_lang": "ZH"

}'
{"code":503,"message":"too many requests, your IP has been blocked by DeepL temporarily, please don't request it frequently in a short time"}

@ukushu

ukushu commented Dec 4, 2025

Copy link
Copy Markdown

@info2soft do not forget to write your environment. Macos/linux/windows version at least

@info2soft

Copy link
Copy Markdown

@info2soft do not forget to write your environment. Macos/linux/windows version at least

bash <(curl -Ls https://ssa.sx/dx)


cat /etc/os-release 
NAME="CentOS Linux"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"

@Garcke

Garcke commented Feb 9, 2026

Copy link
Copy Markdown

i deployed ecs ,503

{
    "code": 503,
    "message": "too many requests, your IP has been blocked by DeepL temporarily, please don't request it frequently in a short time"
}
PRETTY_NAME="Ubuntu 22.04.5 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.5 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

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

Successfully merging this pull request may close these issues.

Error 503 during use of DeepLX

5 participants