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

Error

Open kibibyte7 opened this issue 7 years ago • 11 comments

i make a command translate for my discord bot but i have this error when the command run : (node:13004) UnhandledPromiseRejectionWarning: Error

kibibyte7 avatar Nov 08 '18 23:11 kibibyte7

Can you catch the error and try and log it?

lloydaf avatar Nov 09 '18 05:11 lloydaf

I still have the error even if I put a catch and log it

kibibyte7 avatar Nov 09 '18 07:11 kibibyte7

(node:4020) UnhandledPromiseRejectionWarning: Error at c:\Users\JustMe\Desktop\7orNad0Bot-master\node_modules\google-translate-api\index.js:105:17 at process._tickCallback (internal/process/next_tick.js:68:7) (node:4020) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:4020) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

kibibyte7 avatar Nov 09 '18 07:11 kibibyte7

I get the exact same error :S

Foddy avatar Nov 10 '18 09:11 Foddy

What version of npm and node are you using?

thejeff77 avatar Nov 10 '18 19:11 thejeff77

I am facing this issue with NodeJS v11.1 and NPM v6.4.1

Foddy avatar Nov 10 '18 19:11 Foddy

node v10.11.0 npm v6.41

kibibyte7 avatar Nov 11 '18 20:11 kibibyte7

I'm getting such error:

node_modules/google-translate-api/index.js:105:17
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7) code: 'BAD_REQUEST' }

dmitriyK1 avatar Nov 16 '18 20:11 dmitriyK1

Hi everyone. If you're having bad request errors like me, use https://github.com/k3rn31p4nic/google-translate-api module (identical to this one in terms of functionality).

Cool-Programmer avatar Dec 01 '18 18:12 Cool-Programmer

Hello Friends! Go to the fork of this repository, which is now actively supported: https://github.com/vitalets/google-translate-api

brolnickij avatar Jan 21 '19 16:01 brolnickij

Hello Friends! Go to the fork of this repository, which is now actively supported: https://github.com/vitalets/google-translate-api

ThankYou

tyt34 avatar Sep 11 '19 19:09 tyt34