google-translator icon indicating copy to clipboard operation
google-translator copied to clipboard

Error code 429

Open rrkas opened this issue 3 years ago • 5 comments

Error code 429 is printed and null is returned when translating. Please help

rrkas avatar Jul 29 '20 12:07 rrkas

Error code 429 is printed and null is returned when translating. Please help

Error code 429 means "Too many requests":

"HTTP Status Code 429: The user has sent too many requests in a given amount of time (rate limiting)".

from https://httpstatuses.com/429

gabrielpacheco23 avatar Jul 30 '20 19:07 gabrielpacheco23

Error code 429 is printed and null is returned when translating. Please help

Error code 429 means "Too many requests":

"HTTP Status Code 429: The user has sent too many requests in a given amount of time (rate limiting)".

from https://httpstatuses.com/429

How to fix it? Or waiting it recovery?

dev-phamquoctrong avatar Nov 18 '20 03:11 dev-phamquoctrong

If you prefer you can use google api to translate arb file directly with : https://github.com/justkawal/arb_translator

It uses your google cloud for doing the translation task.

Activate it globally

pub activate global arb_translator

Translate using command:

pub run arb_translator:translate --source_arb path/to/source_en.arb --api_key path/to/api_key_file --language_codes hi,en,zh

justkawal avatar Nov 18 '20 03:11 justkawal

@gabrielpacheco23 I faced exactly the same issue, but in my case method returned presumably a url for captcha entering page. Maybe this could be fixed by opening some webview for captcha entering?

@justkawal

If you prefer you can use google api to translate arb file directly with : https://github.com/justkawal/arb_translator

It uses your google cloud for doing the translation task.

Activate it globally

pub activate global arb_translator

Translate using command:

pub run arb_translator:translate --source_arb path/to/source_en.arb --api_key path/to/api_key_file --language_codes hi,en,zh

This approach can't be used dynamically within the dart code

emvaized avatar Dec 29 '20 20:12 emvaized

@gabrielpacheco23 I think adding api key support will help with this bug. I added the apikey support and created a PR.

EbramTawfik avatar Oct 21 '21 22:10 EbramTawfik