google-translate-api
google-translate-api copied to clipboard
Error
i make a command translate for my discord bot but i have this error when the command run : (node:13004) UnhandledPromiseRejectionWarning: Error
Can you catch the error and try and log it?
I still have the error even if I put a catch and log it
(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.
I get the exact same error :S
What version of npm and node are you using?
I am facing this issue with NodeJS v11.1 and NPM v6.4.1
node v10.11.0 npm v6.41
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' }
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).
Hello Friends! Go to the fork of this repository, which is now actively supported: https://github.com/vitalets/google-translate-api
Hello Friends! Go to the fork of this repository, which is now actively supported: https://github.com/vitalets/google-translate-api
ThankYou