-
Notifications
You must be signed in to change notification settings - Fork 613
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
BAD_REQUEST response #70
Comments
Yeah I've recently been getting this issue as well |
1 similar comment
Yeah I've recently been getting this issue as well |
|
same here! |
The actual response code from google endpoint is Apparantly they are now checking traffic rate and redirecting to:
Which Says: |
Temporary Solution:
|
@nadalizadeh Your solution sounds great! But how can I force all of the translateService's traffic to go through the tor-proxy? Per request is yes! But the translateService has its own implementation of firing requests at the google-api endpoint! It would be nice, if we can have some kind of wrapper! Do you have any hint? |
Same issues for me too.. |
Getting the same issues |
{ Error |
this package uses got to request google translate: |
would you consider adding a PR for that? |
we need test this first.As in China, I found this solution not work. |
Getting same issue. |
Hey. https://github.com/extensionsapp/translatte const translatte = require('translatte');
// Translate string to English using proxy
translatte('Вы говорите на русском?', {
from: 'ru',
to: 'en',
agents: [
'Mozilla/5.0 (Windows NT 10.0; ...',
'Mozilla/4.0 (Windows NT 10.0; ...',
'Mozilla/5.0 (Windows NT 10.0; ...'
],
proxies: [
'LOGIN:[email protected]:12345',
'LOGIN:[email protected]:54321'
]
}).then(res => {
console.log(res);
}).catch(err => {
console.error(err);
});
// { text: 'Do you speak Russian?',
// from: {
// language: {
// didYouMean: false,
// iso: 'ru'
// },
// text: {
// autoCorrected: false,
// value: '',
// didYouMean: false
// }
// },
// raw: '' } |
I don't know why but on my ubuntu laptop the API works with tor, but when on Debian VPS I get bad request, I have the same config the 2 machines, |
Tried this but ended up in getting below error - I just did 'npm install translatte' and tried your example. Do I need to do anything else? |
It seems you are using older version of node.js than required for package. Please check |
I am using v8.4.0 node version. And now it is throwing me below error - |
may be google doing some updates on translator and current interaction become outdated? |
Same here, I received "BAD_REQUEST" error, What should I do? |
I am using this for two BoTs running under Windows. I setup a Ubuntu v18 box yesterday with NodeJs. If I Stop the Windows BoTs and move / start them on the Ubuntu computer I receive bad request. I can move the BoT back to Windows and it works fine. |
Try this solution from another issue. Maybe the reason of BAD_REQUEST is the same. |
Me too. and is this issue solved? |
That worked perfectly. Thank you |
When our app faced with BAD_REQUEST, it won't be back to normal.
Do we have limit on number of requests per second? Our app was working fine till it face with above error.
The text was updated successfully, but these errors were encountered: