-
-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TooManyRequestsError #107
Comments
I think it's possible as we are using another route. Could you share some numbers? How many requests are you doing? Concerning proxies - just checked |
Don't have exact numbers sorry. But def not over 100, and not many per second. A colleague guessed this:
Regarding the proxy I tried dynamically fetching proxies... I'll have to try again with the one you shared. |
Could you try send requests with changing user-agent / other headers? It's simple trick but maybe it help.. For my own tasks I've created a simple service with node-http-proxy and pass it's host as parameter to translate. It makes sense to share it in readme I think. |
Please check |
@vitalets How would you track the number of requests? Is the rate limit by request or by characters? I was reading it was 6k characters but not sure or even how often. I'm also encountering the too many requests error, I have been testing only hence not a lot of requests but some test have been done on big strings. I was also not able to make the proxy work from the list after selecting only from the ones that say yes under Google column (roughly 111 distinct ones) with no luck. Perhaps a quick sample to get us going might help. I'm also wondering how long do those proxies lasts so I can update them accordingly. Thoughts/ideas? |
Can you please share code sample with modified user-agent header? Thank you |
I've made several examples. One is to run translate with proxy. Another is to count requests until you get TooManyRequests error. I guess limit is by number of requests not by total characters. It would be great if you share what you will get. The most interesting thing for me is how much time should pass for Google to unblock particular IP address. |
Here it is |
I've tried datacenter rotational proxy that changes IP every request and mobile rotational proxy that change IP every few minutes, both keep returning 'Too Many Reuqest' error. Tried delay between 10ms and 1 sec, but nothing helped. I used previous version v8.0.0 and it worked great with everything same proxy/delay, so probably something changed in v9.0 that trigger this error. My guess this is no IP/delay related, since error persist with new IPs, seems like google detect my request based on other data like user-agent, etc |
Hmm.. I've just made a test from my local machine. Run
Now every request gets this error:
But if I use proxy, error disappears:
It seems changing IP should help.
Yes, version 8 used another google api url that may have different limits policy. But there is painful bug in v8 that's why library migrated to another url. |
The agent seems not working. Can you do something like this below?
|
|
It seems like its based on a lot of factors, but the single translate endpoint is the only endpoint that has this issue, batch_execute which a lot of projects use has no usage limits. |
You talk about this on the README, but I feel that before the re-write this didn't happen as often. Does it make any sense? And why am I hitting the limit so fast? Can't seem to get any proxies to work to circunvent the problem.
The text was updated successfully, but these errors were encountered: