Closed Guru322 closed 3 months ago
setTimeout(async () => {
try {
let code = await socket.requestPairingCode(phoneNumber)
console.log(`Your Pairing Code : ${code}`)
resolve(code)
} catch (requestPairingCodeError) {
const errorMessage = 'Error requesting pairing code from WhatsApp'
console.error(errorMessage, requestPairingCodeError)
return reject(new Error(errorMessage))
}
}, 5000)
Describe the bug When attempting to request a pairing code, received a 400 Bad Request error
To Reproduce Steps to reproduce the behavior:
Expected behavior should successfully connect to WhatsApp
Environment :
Is this on a server? (Local)
What do your
connectOptions
look like?Do you have multiple clients on the same IP? No
Are you using a proxy? No
Additional context Baileys version - 6.7.7
Full logs :