argosopentech / argosopentech/LibreTranslate-py

HTTP Error 502: Bad Gateway

Open
#13 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
131
Forks
13
PR merge metrics
No merged PRs in 30d

Description

lt = LibreTranslateAPI("https://translate.terraprint.co/")
text = 'เขาบอกว่าได้สร้างกริ่งประตู'
from_lang = 'en'
to_lang = 'es'
res = lt.translate(text, from_lang, to_lang)
print(res)

errors:
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 502: Bad Gateway

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the reported LibreTranslateAPI(...) example and rerun it against https://translate.terraprint.co/ using the shown language arguments. Confirm whether the 502 is returned by the remote service or by the Python binding; done requires a reproducible diagnosis and a clearly scoped fix, but the issue names no file or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.