iamtraction / google-translate

🈯 A Node.JS library to consume Google Translate API for free.
https://npmjs.com/@iamtraction/google-translate
MIT License
540 stars 73 forks source link

error 429 after few testing #13

Closed SamHoque closed 4 years ago

SamHoque commented 5 years ago

I am getting this error after doing a few tests

{ name : HTTPError , statusCode :429, statusMessage : Too Many Requests }

cheesits456 commented 4 years ago

429 is for ratelimits, so I'd assume that whatever you're doing, you're doing it too fast, and google is telling you to slow down

iamtraction commented 4 years ago

This is to prevent abuse of free services. The only thing you can do here is make requests using proxies, and change to a different proxy if you get 429 or wait a few seconds. But if this solution is worth the effort depends on the application.