google-translator
google-translator copied to clipboard
Error code 429
Error code 429 is printed and null is returned when translating. Please help
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)".
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?
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
@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
@gabrielpacheco23 I think adding api key support will help with this bug. I added the apikey support and created a PR.