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

Função getGroupInfoFromInviteLink sem retorno. #677

Closed
guibas00 opened this issue Nov 21, 2021 · 3 comments
Closed

Função getGroupInfoFromInviteLink sem retorno. #677

guibas00 opened this issue Nov 21, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@guibas00
Copy link

Description

Quando chamo a função, getGroupInfoFromInviteLink, que é uma promisse, parece que ela nao consegue ser resolvida, pois não tenho nenhum retorno da mesma, ja fiz testes e isso só ocorre ultilizando a função beta que contém multiplas sessões.

Environment

  • Wppconnect version(s): [e.g. 2.0.27, 2.2.1]
  • Browser: [e.g. Chrome 87, Chromium 85]
  • OS: [e.g. OSX 10.13.4, Windows 10]
  • Node version: [e.g. Node 8, Node 14]
  • WhatsApp version: [e.g. 2.2126.14]
  • MultiDevice (BETA): yes/no

Steps to Reproduce

  1. Chamar o endpoint group-info-from-invite-link

Log Output

Sem retorno, a requisição leva timeout.

Code

export async function getGroupInfoFromInviteLink(req, res) {
const thi = await req.client.getGroupInfoFromInviteLink();
console.log(thi);
try {
const { invitecode } = req.body;
let response = await req.client.getGroupInfoFromInviteLink(invitecode);
return res.status(200).json({ status: 'success', response: response });
} catch (e) {
req.logger.error(e);
return res.status(500).json({ status: 'error', message: 'Error on get group info from invite link' });
}
}

@guibas00 guibas00 added the bug Something isn't working label Nov 21, 2021
@jtapeg
Copy link

jtapeg commented Nov 22, 2021

Esta usando a ultima versão do wppconnect e do wa-js? Esta usando o beta do whatsapp?

@guibas00
Copy link
Author

Acredito que sim, estou usando o projeto main do wppconnect server.

@guibas00
Copy link
Author

Esta usando a ultima versão do wppconnect e do wa-js? Esta usando o beta do whatsapp?
e tambem a beta do wpp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants