Skip to content
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

Can't translate, getting error. #102

Open
Stanlyhalo opened this issue Dec 10, 2019 · 3 comments
Open

Can't translate, getting error. #102

Stanlyhalo opened this issue Dec 10, 2019 · 3 comments

Comments

@Stanlyhalo
Copy link

I'm getting this error:

{ Error
at /rbd/pnpm-volume/d8614593-b135-49f8-804b-3686ad6243fd/node_modules/.registry.npmjs.org/google-translate-api/2.3.0/node_modules/google-translate-api/index.js:105:17
at
at process._tickCallback (internal/process/next_tick.js:189:7) code: 'BAD_REQUEST' }

when doing this

translate('Hello', {from: 'en', to: 'es'}).then(res => {
  console.log(res.text);
  console.log(res.from.text.autoCorrected);
  console.log(res.from.text.value);
  console.log(res.from.text.didYouMean);
}).catch(err => {
  console.error(err);
});

Why does this happen. I'm doing everything right.

@Himadri001
Copy link

Having the same problem, any update on this?

@mistersender
Copy link

I'm also seeing this error. looks like the underlying issue is a 403. wonder if google locked it down finally?

@ArtanisTheOne
Copy link

I'm also seeing this error. looks like the underlying issue is a 403. wonder if google locked it down finally?

Incorrect token is being generated, check out my open issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants