400. That’s an error.
The server cannot process the request because it is malformed. It should not be retried. That’s all we know.
Closed brettcol closed 1 year ago
trans -e bing -sl en -tl yue 'hello' -dump
{"statusCode":400,"errorMessage":""}
same status code output with bing engine
Please use the latest develop
branch where this issue has been fixed.
By the way, Google Translate never supported Cantonese (yue
as the language code), so the Bing engine had to be invoked explicitly in this case.
By the way, Google Translate never supported Cantonese (
yue
as the language code), so the Bing engine had to be invoked explicitly in this case.
It doesn’t work with Bing either, but with a different failure mode (passing e.g. -e bing en:yue "<common english word>"
returns <common english word>
verbatim). This is with Docker image pulled today.
By the way, Google Translate never supported Cantonese (
yue
as the language code), so the Bing engine had to be invoked explicitly in this case.It doesn’t work with Bing either, but with a different failure mode (passing e.g.
-e bing en:yue "<common english word>"
returns<common english word>
verbatim). This is with Docker image pulled today.
Seems that the docker image was a bit outdated. It should work with the latest version (0.9.7.1).
$ trans -e bing en:yue "I don't know"
I don't know
我唔知
[ English → 粵語 ]
On an install from .deb created a blank line of output. Reinstalled from git and with make and got a 400 error.
Example inputs:
trans -sl en -tl yue 'hello'
Github direct ver. Output:
[ERROR] Google returned an error response. HTTP status code: 400 [ERROR] Other HTTP error
Version info: Translate Shell 0.9.6.12-git:d3e0836
platform Linux terminal type xterm-256color bi-di emulator [N/A] gawk (GNU Awk) 4.2.1 fribidi (GNU FriBidi) 1.0.5 audio player mpv --no-config terminal pager less web browser xdg-open user locale en_US.UTF-8 (English) home language en source language auto target language en translation engine google proxy [NONE] user-agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36 ip version [DEFAULT] theme default init file [NONE]