Giter VIP home page Giter VIP logo

Comments (5)

gabrielpacheco23 avatar gabrielpacheco23 commented on September 3, 2024

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

from google-translator.

dev-phamquoctrong avatar dev-phamquoctrong commented on September 3, 2024

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?

from google-translator.

justkawal avatar justkawal commented on September 3, 2024

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

from google-translator.

emvaized avatar emvaized commented on September 3, 2024

@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

from google-translator.

EbramTawfik avatar EbramTawfik commented on September 3, 2024

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

from google-translator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.