I am attempting to register a new number as a mobileBuilder using the code snippet below. However, I am encountering a "no_routes" error from the registration phase ("/code").
I have tried multiple prepaid numbers from the same provider in Cyprus, but the issue persists.
I'm using numbers that never had a WhatsApp account installed on them if it is relevant.
I can get the SMS using an actual device, so the problem isn't the number itself, I think.
Am I doing something wrong?
Thanks!
Code:
Whatsapp api = Whatsapp.mobileBuilder()
.newConnection()
.unregistered()
.verificationCodeMethod(VerificationCodeMethod.SMS)
.verificationCodeSupplier(() -> {
System.out.println("Enter OTP: ");
var scanner = new Scanner(System.in);
return CompletableFuture.completedFuture(scanner.nextLine());
})
.register(357XXXXXXL)
.join();
I am attempting to register a new number as a
mobileBuilder
using the code snippet below. However, I am encountering a "no_routes" error from the registration phase ("/code"). I have tried multiple prepaid numbers from the same provider in Cyprus, but the issue persists. I'm using numbers that never had a WhatsApp account installed on them if it is relevant. I can get the SMS using an actual device, so the problem isn't the number itself, I think. Am I doing something wrong? Thanks!Code:
Error: