OwO-Network / DeepLX

Powerful Free DeepL API, No Token Required
https://ssa.sx/deeplx
MIT License
6.68k stars 534 forks source link

Abnormally long response time for 503 with v0.9.8.3 #153

Closed showgood163 closed 2 weeks ago

showgood163 commented 2 weeks ago

Hi there.

Compared to the old API (v0.9.7), the new API (v0.9.8.3) is more harsh in terms of rate limiting (http error 503), and occasionally there will be abnormally long response times. Here is the log.

Nov 04 01:10:14 xx bash[34204]: [GIN] 2024/11/04 - 01:10:14 | 503 |  8.028877771s | yy | POST     "/translate"
Nov 04 01:10:15 xx bash[34204]: [GIN] 2024/11/04 - 01:10:15 | 503 |  9.015709551s | yy | POST     "/translate"
Nov 04 01:12:42 xx bash[34204]: [GIN] 2024/11/04 - 01:12:42 | 200 |  6.550092592s | yy | POST     "/translate"
Nov 04 01:12:45 xx bash[34204]: [GIN] 2024/11/04 - 01:12:45 | 200 |  4.331374575s | yy | POST     "/translate"
Nov 04 01:13:10 xx bash[34204]: [GIN] 2024/11/04 - 01:13:10 | 200 |  5.601068367s | yy | POST     "/translate"
Nov 04 01:13:14 xx bash[34204]: [GIN] 2024/11/04 - 01:13:14 | 200 |  3.802606237s | yy | POST     "/translate"
Nov 04 01:30:07 xx bash[34204]: [GIN] 2024/11/04 - 01:30:07 | 503 |        21m30s | yy | POST     "/translate"
Nov 04 01:30:07 xx bash[34204]: [GIN] 2024/11/04 - 01:30:07 | 503 |        37m58s | yy | POST     "/translate"
Nov 04 01:32:55 xx bash[34204]: [GIN] 2024/11/04 - 01:32:55 | 200 |  3.491551547s | yy | POST     "/translate"
Nov 04 01:32:55 xx bash[34204]: [GIN] 2024/11/04 - 01:32:55 | 200 |  3.557510218s | yy | POST     "/translate"
showgood163 commented 2 weeks ago

Sorry but I couldn't find a way to reliably reproduce this phenomenon.