Comments (5)
Does this error occur on certain texts or it's just happening randomly? I mean, the same text sometimes translates and sometimes not?
from google-translate-php.
It's only on certain texts. I don't know why but some Russian language strings translate fine and others get the Error 400. It's reproducible.
In function staticTranslate
I dumped the created url on a non-working example from https://www.youtube.com/watch?v=0NjqjNPhTlc if you wish to test:
http://translate.google.com/translate_a/t?client=t&text=%D0%B1%D0%B0%D0%B7%D1%8B%20%D0%B0%D0%BA%D0%BA%D0%B0%D1%83%D0%BD%D1%82%D0%BE%D0%B2%20world%20of%20tanks%20%20http%3A%2F%2Fcheat-worldoftanks.ga%2Fmes.html%0A%0A%0A%0A%0A%D0%9D%D1%80%D0%B0%D0%B2%D1%8F%D1%82%D1%81%D1%8F%20%D1%82%D0%B0%D0%BD%D0%BA%D0%B8%3F%20%D0%9F%D0%BE%D0%B4%D0%BF%D0%B8%D1%81%D1%8B%D0%B2%D0%B0%D0%B9%D1%82%D0%B5%D1%81%D1%8C%20%D0%BD%D0%B0%20%D0%BA%D0%B0%D0%BD%D0%B0%D0%BB%21%0A%D0%92%D1%81%D0%B5%20%D1%81%D0%B0%D0%BC%D1%8B%D0%B5%20%D0%B8%D0%BD%D1%82%D0%B5%D1%80%D0%B5%D1%81%D0%BD%D1%8B%D0%B5%20%D0%BD%D0%BE%D0%B2%D0%BE%D1%81%D1%82%D0%B8%20%D0%B2%20%D0%BD%D0%B0%D1%88%D0%B5%D0%BC%20%D1%82%D0%B2%D0%B8%D1%82%D1%82%D0%B5%D1%80%D0%B5%3A%20http%3A%2F%2Ftwitter.com%2Fworldoftanks_ru%0A%D0%97%D0%B0%D1%80%D0%B5%D0%B3%D0%B8%D1%81%D1%82%D1%80%D0%B8%D1%80%D1%83%D0%B9%D1%82%D0%B5%D1%81%D1%8C%20%D0%B8%20%D0%B8%D0%B3%D1%80%D0%B0%D0%B9%D1%82%D0%B5%20%D0%B2%20World%20Of%20Tanks%20%D0%B1%D0%B5%D1%81%D0%BF%D0%BB%D0%B0%D1%82%D0%BD%D0%BE%3A%20http%3A%2F%2Fworldoftanks.ru%2F%0A%0A%D0%9E%D0%B1%D1%81%D1%83%D0%B6%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5%20%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE%20%D0%BD%D0%B0%20%D1%84%D0%BE%D1%80%D1%83%D0%BC%D0%B5%3A%20http%3A%2F%2Fforum.worldoftanks.ru%2Findex.ph...%0A%0A%D0%BF%D1%80%D0%BE%D0%BA%D0%B0%D1%87%D0%B0%D1%82%D1%8C%20world%20of%20tanks%0A%D0%B1%D0%B0%D0%B7%D1%8B%20%D0%B0%D0%BA%D0%BA%D0%B0%D1%83%D0%BD%D1%82%D0%BE%D0%B2%20world%20of%20tanks%0A%D0%BF%D1%80%D0%BE%D0%BA%D0%B0%D1%87%D0%B0%D1%8E%20%D0%B0%D0%BA%D0%BA%D0%B0%D1%83%D0%BD%D1%82%20world%20of%20tanks%0A%D0%BF%D1%80%D0%BE%D0%BA%D0%B0%D1%87%D0%BA%D0%B0%20world%20of%20tanks%0Aworld%20of%20tanks%20%D0%BF%D1%80%D0%BE%D0%BA%D0%B0%D1%87%D0%BA%D0%B0%20%D1%82%D0%B0%D0%BD%D0%BA%D0%BE%D0%B2%0Aworld%20of%20tanks%20%D0%BF%D1%80%D0%BE%D0%BA%D0%B0%D1%87%D0%BA%D0%B0%20%D1%8D%D0%BA%D0%B8%D0%BF%D0%B0%D0%B6%D0%B0%0A%D0%B1%D0%B0%D0%B7%D1%8B%20%D0%B0%D0%BA%D0%BA%D0%B0%D1%83%D0%BD%D1%82%D0%BE%D0%B2%20world%20of%20tanks%0A%D0%BF%D1%80%D0%BE%D0%BA%D0%B0%D1%87%D0%BA%D0%B0%20%D0%B0%D0%BA%D0%BA%D0%B0%D1%83%D0%BD%D1%82%D0%B0%20world%20of%20tanks%0A%D0%B1%D0%B5%D1%81%D0%BF%D0%BB%D0%B0%D1%82%D0%BD%D0%B0%D1%8F%20%D0%BF%D1%80%D0%BE%D0%BA%D0%B0%D1%87%D0%BA%D0%B0%20world%20of%20tanks%0A%D0%BF%D1%80%D0%BE%D0%BA%D0%B0%D1%87%D0%BA%D0%B0%20world%20of%20tanks%20%D0%B1%D0%B5%D1%81%D0%BF%D0%BB%D0%B0%D1%82%D0%BD%D0%BE%0A%D0%B1%D0%B0%D0%B7%D1%8B%20%D0%B0%D0%BA%D0%BA%D0%B0%D1%83%D0%BD%D1%82%D0%BE%D0%B2%20world%20of%20tanks%0Aworld%20of%20tanks%20%D0%B1%D1%8B%D1%81%D1%82%D1%80%D0%B0%D1%8F%20%D0%BF%D1%80%D0%BE%D0%BA%D0%B0%D1%87%D0%BA%D0%B0%0A%D0%BF%D1%80%D0%BE%D0%BA%D0%B0%D1%87%D0%BA%D0%B0%20%D0%BF%D0%B5%D1%80%D0%BA%D0%BE%D0%B2%20world%20of%20tanks%0Aworld%20of%20tanks%20%D0%BF%D1%80%D0%BE%D0%BA%D0%B0%D1%87%D0%BA%D0%B0%20%D0%B8%D1%81%0A%D1%81%D0%B5%D0%BA%D1%80%D0%B5%D1%82%D1%8B%20%D0%BF%D1%80%D0%BE%D0%BA%D0%B0%D1%87%D0%BA%D0%B8%20world%20of%20tanks%0A%D0%B1%D0%B0%D0%B7%D1%8B%20%D0%B0%D0%BA%D0%BA%D0%B0%D1%83%D0%BD%D1%82%D0%BE%D0%B2%20world%20of%20tanks%0A%D1%87%D0%B8%D1%82%20%D0%BA%D0%BE%D0%B4%D1%8B%20%D0%B2%D0%BE%D1%80%D0%BB%D0%B4%20%D0%BE%D1%84%20%D1%82%D0%B0%D0%BD%D0%BA%0A%D0%B2%D0%BE%D1%80%D0%BB%D0%B4%20%D0%BE%D1%84%20%D1%82%D0%B0%D0%BD%D0%BA%20%D0%B2%D0%B2%D0%B5%D1%81%D1%82%D0%B8%20%D0%BA%D0%BE%D0%B4%0A%D1%81%D0%BA%D0%B0%D1%87%D0%B0%D1%82%D1%8C%20%D0%B2%D0%BE%D1%80%D0%BB%D0%B4%20%D0%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B7%D0%BB%D0%BE%D0%BC%20%D0%B2%D0%BE%D1%80%D0%BB%D0%B4%20%D0%BE%D1%84%20%D1%82%D0%B0%D0%BD%D0%BA%0A%D0%B2%D0%BE%D1%80%D0%BB%D0%B4%20%D0%BE%D1%84%20%D1%82%D0%B0%D0%BD%D0%BA%20%D0%BC%D0%B0%D0%B3%D0%B0%D0%B7%D0%B8%D0%BD%0A%D0%B2%D0%BE%D1%80%D0%BB%D0%B4%20%D0%BE%D1%84%20%D1%82%D0%B0%D0%BD%D0%BA%20%D0%BF%D1%80%D0%B5%D0%BC%D0%B8%D1%83%D0%BC%20%D0%BC%D0%B0%D0%B3%D0%B0%D0%B7%D0%B8%D0%BD&hl=en&sl=auto&tl=en&ie=UTF-8&oe=UTF-8&multires=1&otf=1&pc=1&trs=1&ssel=3&tsel=6&sc=1
from google-translate-php.
I guess there is some kind of limit on GET request size (But it should cause Error 414
instead of 400
).
I can't fix this bug right now (3AM here). I'll take care tomorrow, sorry.
By the way maybe it's related to #8
from google-translate-php.
Yes that would explain both issues. Now we have to figure out how best to handle it - change the GET request to a POST request?
from google-translate-php.
This is fixed in latest version v3.0.1
from google-translate-php.
Related Issues (20)
- setUrl() It is not available in mainland China HOT 1
- Memory Usage HOT 4
- Very slow HOT 1
- Country an cities sometimes are not translated HOT 4
- ErrorException: Maximum execution time of 60 seconds exceeded HOT 4
- Class "Stichoza\GoogleTranslate\GoogleTranslate" not found HOT 1
- How do I swap to using my own paid api key? HOT 1
- Loading Problem. HOT 2
- I use the IP of a VPN server as a proxy, I wonder why it doesn't work when I use 'https' instead? HOT 5
- Can you give me a list of free Proxies that I can use so that translation is not blocked in the future? HOT 1
- Can you fix this bug in your library for me?
- 400 Bad Request Client error: GET HOT 5
- Can you add the link of my package to your package? HOT 1
- Ignore escaped keys on translations HOT 4
- Error: Class "Stichoza\GoogleTranslate\GoogleTranslate" not found in file HOT 6
- Bug report: preserveParameters gives unexpected results when translating to French HOT 1
- cURL error 60: SSL certificate problem HOT 1
- Please assist me HOT 3
- How can I translate my page web HTML into your library? HOT 2
- PHP - extract the children from this <div id="page-container"> then translate it and put them back into this same <div id="page-container">
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-translate-php.