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

HTTP Error #32

Closed
aarabii opened this issue Oct 5, 2021 · 5 comments
Closed

HTTP Error #32

aarabii opened this issue Oct 5, 2021 · 5 comments

Comments

@aarabii
Copy link

aarabii commented Oct 5, 2021

hey i was trying to make a translate command for my discord bot but i'm facing HTTPSError i have a simple code like this
const arLang = await translate(Message, { to: 'ar' });
where Message is a message from a author and then it will send the translation to the discord channel and there is a catch block for err which gives HTTPError so IDK what should i do if you want i can provide you whole code too

note: 1st i thought i get this err cuz m trying to get 10 translation so i removed 9 of them but still the err was there

@iamtraction
Copy link
Owner

Can you send the entire error log?

@aarabii
Copy link
Author

aarabii commented Oct 6, 2021

`/home/runner/Touka-Kirshima/node_modules/@iamtraction/google-translate/src/index.js:142
let error = new Error();
^

Error [HTTPError]
at translate (/home/runner/Touka-Kirshima/node_modules/@iamtraction/google-translate/src/index.js:142:25)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async InteractionCollector. (/home/runner/Touka-Kirshima/SlashCommands/ContextMenu/translate.js:115:22) {
statusCode: undefined,
statusMessage: undefined`

@ElesGergo
Copy link

I am getting the same error as @losier. Any suggestions?

@Sagar409-conflict
Copy link

I am also getting same error.

{ HTTPError
    at translate (/var/www/html/sawem/api/node_modules/@iamtraction/google-translate/src/index.js:142:25)
    at process._tickCallback (internal/process/next_tick.js:68:7)
  name: 'HTTPError',
  statusCode: undefined,
  statusMessage: undefined }

@iamtraction
Copy link
Owner

Most likely a rate limit error. try with the latest version of the library. It'll show a more detailed error object.

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