question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

checkNumberStatus not working, is return reject to all request.

See original GitHub issue

eNumeroWhatsapp(client: venom.Whatsapp, numero: string): Promise<boolean> { return new Promise(async (resolve, reject) => { try { let statusAt = await client.checkNumberStatus(${numero}@c.us) if (statusAt.status == 200) { return resolve(statusAt.numberExists) } else resolve(false) } catch (error: any) { if (error.status == 404) return resolve(false) if (typeof error == 'object') reject(JSON.stringify(error)) else reject(error) } }) } pr

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:5

github_iconTop GitHub Comments

3reactions
mateoayatcommented, Feb 26, 2022

Having the same issue.

2reactions
beetechbrcommented, Feb 28, 2022

same here

Read more comments on GitHub >

github_iconTop Results From Across the Web

Do I need to return after early resolve/reject? - Stack Overflow
The return purpose is to terminate the execution of the function after the rejection, and prevent the execution of the code after it....
Read more >
Promise.all() - JavaScript - MDN Web Docs
Promise.all() will reject immediately upon any of the input promises rejecting. In comparison, the promise returned by Promise.
Read more >
JavaScript Promise Tutorial – How to Resolve or Reject ...
A rejected promise is returned for any kind of errors. We will be using this function in several examples from now on to...
Read more >
gdol check claim status
Employer Filed (Partial) Claims: All Georgia employers are required to file … ... A pending issue of unemployment is a problem unemployment representatives ......
Read more >
JavaScript Promises: race, all, allSettled, and then
allSettled () is the solution to all your problems if you're coming from ... or rejected, but not pending), the method returns a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found