google-translate-api icon indicating copy to clipboard operation
google-translate-api copied to clipboard

code: 'BAD_REQUEST

Open moyu5555 opened this issue 4 years ago • 9 comments

{ Error at /home/xiangying/server/core/node_modules/[email protected]@google-translate-api/index.js:105:17 at at process._tickCallback (internal/process/next_tick.js:188:7) code: 'BAD_REQUEST' }

moyu5555 avatar Feb 25 '20 09:02 moyu5555

i have the same problem

summerscar avatar Feb 26 '20 10:02 summerscar

same from me too, it doesn't translate anything at all

Hector6704 avatar Mar 08 '20 17:03 Hector6704

same, maybe have problem with API from google translate

myusufid avatar Mar 13 '20 21:03 myusufid

Use https://github.com/davidwilsonfs/google-translate-token

ezdiy avatar Mar 14 '20 17:03 ezdiy

Use this: https://github.com/wilsonwu/translation-google It support Chinese server.

wilsonwu avatar Mar 14 '20 17:03 wilsonwu

Yea I have tried translating 200 sentences using a for loop, and after that a got that 'BAD_REQUEST'. Google will send you the response with statusMessage: 'Too Many Requests', so the problem is that you made too many request and you ID was blocked, and you are no longer able to request translation from the Google`s service :disappointed_relieved:

slaviboy avatar Mar 31 '21 23:03 slaviboy

Use https://github.com/davidwilsonfs/google-translate-token

How do you use this?

I also found this library, just tried to use for the last 10 minutes, then got errors of 'BAD_REQUEST'.

How do you use the google-translate-token to solve? Is that even still a solution?

doverradio avatar Apr 05 '21 18:04 doverradio

Use this: https://github.com/wilsonwu/translation-google It support Chinese server.

This works! Thank you!

xsvetli1 avatar Apr 24 '21 15:04 xsvetli1

Use this: https://github.com/wilsonwu/translation-google It support Chinese server.

Thanks!

shakkamakka avatar Aug 09 '22 22:08 shakkamakka