Comments (8)
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.
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.
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.
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.
I get a similar issue with an empty string.
from google-translate-api.
I get a similar issue with an empty string.
Interesting, that doesn't seem breaking though
from google-translate-api.
Can you see if updating to v10.6.5 helps with the error logging of your issue?
from google-translate-api.
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)
- Autocorrect not properly applied to translations from certain networks HOT 6
- Real-time translation HOT 2
- ReferenceError: fetch is not defined HOT 2
- TypeScript Error HOT 2
- requestOptions documentation outdated HOT 3
- It throws error "fetch is not defined" HOT 2
- Tests fail only because rate limited on single translate HOT 1
- TypeError: (0 , _googleTranslateApiX.translate) is not a function HOT 17
- google-translate-api-x gives below error HOT 3
- Improve `speak` testing
- ERROR [TypeError: Cannot convert null value to object] HOT 2
- Issue with the speak functionality HOT 2
- Batch translation error HOT 6
- Can't run on React.js HOT 2
- Big translation slowed down HOT 11
- change speak speed HOT 2
- fetch is not defined after deployment HOT 2
- CORS policy error HOT 4
- Obtain translation synonyms HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-translate-api.