Skip to content

Commit 9b36e6f

Browse files
committed
Fix #119: Indicate 403 forbidden error in known limitations
1 parent 3932ee8 commit 9b36e6f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,15 @@ In addition, `translate()` and `trans()` methods will return `null` if there is
167167

168168
## Known Limitations
169169

170-
- `503 Service Unavailable` response:
170+
- `503 Service Unavailable` response:
171171
If you are getting this error, it is most likely that Google has banned your external IP address and/or [requires you to solve a CAPTCHA](https://github.com/Stichoza/google-translate-php/issues/18). This is not a bug in this package. Google has become stricter, and it seems like they keep lowering the number of allowed requests per IP per a certain amount of time. Try sending less requests to stay under the radar, or change your IP frequently ([for example using proxies](#http-client-configuration)). Please note that once an IP is banned, even if it's only temporary, the ban can last from a few minutes to more than 12-24 hours, as each case is different.
172172
- `429 Too Many Requests` response:
173173
This error is basically the same as explained above.
174-
- `413 Request Entity Too Large` response:
174+
- `413 Request Entity Too Large` response:
175175
This error means that your input string is too long. Google only allows a maximum of 5000 characters to be translated at once. If you want to translate a longer text, you can split it to shorter parts, and translate them one-by-one.
176+
- `403 Forbidden` response:
177+
This is not an issue with this package. Google Translate itself has some problems when it comes to translating some characters. See https://github.com/Stichoza/google-translate-php/issues/119#issuecomment-558078133
178+
176179

177180
## Disclaimer
178181

0 commit comments

Comments
 (0)