-
Notifications
You must be signed in to change notification settings - Fork 39
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
Exception: Unexpected status code 429 #8
Comments
could you please share the text that your are trying to translate. |
Hi @Saravananslb that is a kind offer, however, my data is confidential and the translation directed to only some part of it that is embedded in a long function. |
Hi @jonas-nothnagel and @Saravananslb, |
Hi jsmboli, Are u getting the same 429 error code. Thanks, |
@JSMboli I still encounter the error. Actually, for each google-trans library I've tried (and there are several implementations on github) it does not seem to work well anymore. I assume that Google changed their API. |
I also meet this error. I tried to translate the same sentence more than 100000 times to test its stability. It will throw such an error in the process. I guess there are too many requests to Google Translation.
|
Not a solution for this issue, but perhaps it is helpful for you guys. I ended up using transformer based Neural Translation https://github.com/UKPLab/EasyNMT It takes more time, but since it is a pre-trained model it is not dependent on some API we have no control over and the translation quality is fantastic. |
@jonas-nothnagel, thanks for letting us know. |
So I found a workaround:
So when the exception is thrown I start a new object and try again. |
Hi @Saravananslb
Thanks for setting up a new translate library!
Unfortunately, even for a minimal working example:
I run into this error:
Exception: Unexpected status code 429 from https://translate.google.com/_/TranslateWebserverUi/data/batchexecute after retried 3 loop with 5s delay
I upgraded to 'https://pypi.org/project/pygoogletranslation/2.0.2/' as mentioned in the closed issue, but it is still not working and throws the same error:
Exception: Unexpected status code 429 from https://translate.google.com/_/TranslateWebserverUi/data/batchexecute after retried 3 loop with 5s delay
The text was updated successfully, but these errors were encountered: