google-translate-api icon indicating copy to clipboard operation
google-translate-api copied to clipboard

Error in google-translate-api: BAD_REQUEST code in index.js

Open the-man-w-laughs opened this issue 2 years ago • 7 comments

I encountered an error while using the google-translate-api package. The error message indicates a "BAD_REQUEST" code in the index.js file of the package. Here are the details:

Error at C:...\words\words-back\node_modules\google-translate-api\index.js:105:17 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { code: 'BAD_REQUEST' }

the-man-w-laughs avatar May 26 '23 11:05 the-man-w-laughs

Same problem, looks like google disabled this.

megahypercat avatar May 30 '23 16:05 megahypercat

same problem

resulshm avatar Jun 13 '23 10:06 resulshm

{ host: 'translate.google.com', hostname: 'translate.google.com', method: 'GET', path: '/translate_a/single?client=t&sl=auto&tl=en&hl=en&dt=at&dt=bd&dt=ex&dt=l d&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&ie=UTF-8&oe=UTF-8&otf=1&ssel=0&tsel=0&kc=7 &q=Ik%20spreek%20Engels&tk=617611.617611', statusCode: 403, statusMessage: 'Forbidden' }

skyheros001 avatar Jun 18 '23 03:06 skyheros001

Same problem :pensive:

darkfunc avatar Jun 18 '23 05:06 darkfunc

also same problem

oussama166 avatar Jul 05 '23 18:07 oussama166

This repo has long been no longer supported. If you're here because you're seeing a failing with this error, you can use my API generated from Google Translate. Here are the documents.

datpmt avatar Nov 03 '23 04:11 datpmt

This repo has long been no longer supported. If you're here because you're seeing a failing with this error, you can use my API generated from Google Translate. Here are the documents.

nice :)

darkfunc avatar Nov 12 '23 17:11 darkfunc