Skip to content
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

Randomly 403 Forbidden #156

Closed
nicolasdevai13 opened this issue Dec 15, 2020 · 4 comments
Closed

Randomly 403 Forbidden #156

nicolasdevai13 opened this issue Dec 15, 2020 · 4 comments

Comments

@nicolasdevai13
Copy link

Hello,

I have a randomly 403, I already try this fix #119 (comment)

But this error is random, for example I am on the foreach loop and I have this error on https://translate.google.com/translate_a/single?client=webapp&hl=en&dt=t&dt=bd&dt=at&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&sl=en&tl=fr&q=Internet+Information+Services+%28IIS%29+is+a+web+server+created+by+Microsoft+for+use+with+Microsoft+Windows.+Please+mention+which+version+of+IIS+you%26%2339%3Bre+running+either+in+your+question+or+by+adding+a+version+specific+tag.&ie=UTF-8&oe=UTF-8&multires=1&otf=0&pc=1&trs=1&ssel=0&tsel=0&kc=1&tk=937267.556621 request.

If I took the same "sting" and translate it out of the foreach all is ok.

Can you help me please ?

Thanks

@Stichoza
Copy link
Owner

That error is random, there is a chance that it's related to Error 429 (rate limiting), i.e. you're sending requests too quickly (that foreach loop). Try translating other set of simple strings (no special characters, no html) in a same loop and see if you get the same error.

@nicolasdevai13
Copy link
Author

Thanks for your reply,

I will try this but I also had a Error 429 for to many request independant of the Error 403.

@wifirevaithi
Copy link

Facing the same Problem

@Stichoza
Copy link
Owner

This is described in known-limitations section and happens for unknown reasons. Same happens on Google Translate we app, not related to this package.

As of v5.1.0 this error is contained in TranslationRequestException

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants