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:
- Created 2 years ago
- Reactions:4
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Having the same issue.
same here