Giter Site home page Giter Site logo

Comments (8)

abhinandanudupa avatar abhinandanudupa commented on August 27, 2024 1

Yes, it is not breaking but it can be hard to figure the reason. So, I have raised a PR which can help in such a situation for this situation. It can be helpful when the user unknowingly inputs empty strings.

from google-translate-api.

AidanWelch avatar AidanWelch commented on August 27, 2024

I'm able to replicate a similar error by spamming thousands of requests in quick succession responding with:

)]}'

105
[["er",null,null,null,null,400,null,null,null,3],["di",17],["af.httprm",17,"-8356414571367733663",103]]
25
[["e",4,null,null,141]]

I would say just try varying requests, as one of the test unit tests is 1000 requests and it doesn't have any issues. Also don't send 1000+ at the exact same time. You can also try using a proxy.

from google-translate-api.

leons1767 avatar leons1767 commented on August 27, 2024

Thanks @AidanWelch

I only sent 2 identical sentences in the array, to translate to different languages. I guess I will need a retry bloc.

from google-translate-api.

AidanWelch avatar AidanWelch commented on August 27, 2024

Huh, that is weird maybe Google is changing their rate limits. You can also try calling with forceBatch: false if you're just trying individual strings. So that it at least spreads out your requests across endpoints.

from google-translate-api.

abhinandanudupa avatar abhinandanudupa commented on August 27, 2024

I get a similar issue with an empty string.

from google-translate-api.

AidanWelch avatar AidanWelch commented on August 27, 2024

I get a similar issue with an empty string.

Interesting, that doesn't seem breaking though

from google-translate-api.

AidanWelch avatar AidanWelch commented on August 27, 2024

Can you see if updating to v10.6.5 helps with the error logging of your issue?

from google-translate-api.

AidanWelch avatar AidanWelch commented on August 27, 2024

The error logging works, but it seems like batch requests are failing too often, it may be to do with the init. Will investigate

from google-translate-api.

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.