-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
Not able to request with more than 1800 characters #224
Comments
Can you post the output? |
@nidhaloff yeah sure,
Now everytime I got the same result that I am posting at the end of this snippet
And for the above issue I have gone through various articles and posts and stackoverflows questions and I found out that we are using GET method which results to the character limit of 2k though I am not able to achieve the result for 2k characters but that is what I found and for the POST method the character limit is 5k. So, maybe that could be the reason of capping it upto 2k. But, I am not sure. Please guide me if I am wrong. (source:[https://stackoverflow.com/questions/18754905/google-translate-api-cannot-send-more-than-2000-characters-per-request]) |
@rupeshkumaar Hm I didn't know about the GET request limitation. Can you hack up and test that using post? |
@nidhaloff I had tried using post but earlier I was getting 411, it needed Content-length as the request header, and after that I started getting 405. So, I was not able to work it out. But I tried another module translators and under the hood it was using the 5k characters limit. But only drawback I found was if the limit is exhausted or somehow you got 429 then you are done for the day. So, it didn't fulfill my requirement. deep-translator could, so I am currently using deep-translator with 1800 characters limit but if you could look into this and work it out somehow. Hope this helps. |
I was trying to request a document text that was in Chinese but I was not able to send a request with more than 1800 characters. Though it says it has 5k character limit. I am getting RequestError with 400 status code. I have latest version of deep-translator.
The text was updated successfully, but these errors were encountered: