Stichoza/google-translate-php

Randomly 403 Forbidden

nicolasdevai13 opened this issue · 4 comments

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.

Thanks for your reply,

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

Facing the same Problem

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