Auties00 / Cobalt

Standalone unofficial fully-featured Whatsapp Web and Mobile API for Java and Kotlin
MIT License
625 stars 183 forks source link

"reason":"missing"(3.4.8) #333

Closed LuckymanCN closed 1 year ago

LuckymanCN commented 1 year ago

android business

Whatsapp.mobileBuilder() .newConnection() .business(true) .unregistered() .register(phone, () -> { System.out.println("Enter OTP: "); return new Scanner(System.in).nextLine().trim(); }) .join();

[WhatsApp/2.23.12.78 SMBA/8.0.0 Device/Samsung-star2lte]

code function params: reason=&authkey=blylYAzxfB0IZs4G5mrTp161vghQHjKLykr8dZO7Wx0=&e_skey_sig=mJZpWm3cuarZqB-s_4FLN0pU0ewi2InOJW982En8WzrbZaLyHREct32MlnCM7pnDrxYAYMuX41UwZqsjCpAvAQ==&pid=1365633&mcc=404&e_skey_id=AC-4&mistyped=6&id=2ea1db5ed3477c33a883dc6a2ae040b818f5d75d&cc=91&sim_mcc=000&mnc=093&method=sms&hasinrc=1&in=7347245162&hasav=1&token=ccZlZvRLTALsw8NqY84G9tQrCwU%3D&rc=0&e_regid=AAAvuA==&fdid=7429a66b-5f8e-4123-a9be-15e7cf51a3fb&lc=GB&simnum=1&e_skey_val=etrl8VbLFb89XGTM3IZ0AEjwKJK9uY37jQ0fvuSzVhw=&lg=en&sim_mnc=000&e_keytype=BQ&e_ident=W-WNcrxBA4Qz0ucsNRlRcIdRo_QDddTe1h7IBOEH2Bo=&network_ratio_type=1&expid=NdHvYk6hSwxYPNxxr0iEKw== response {"email_otp_wait":65,"flash_type":1,"length":6,"login":"917347245162","method":"sms","notify_after":86400,"retry_after":65,"sms_wait":65,"status":"sent","voice_wait":125,"wa_old_wait":65}

register function params: cc=91&authkey=blylYAzxfB0IZs4G5mrTp161vghQHjKLykr8dZO7Wx0=&code=493393&hasinrc=1&in=7347245162&e_skey_sig=mJZpWm3cuarZqB-s_4FLN0pU0ewi2InOJW982En8WzrbZaLyHREct32MlnCM7pnDrxYAYMuX41UwZqsjCpAvAQ==&pid=1365633&e_skey_id=AC-4&token=ccZlZvRLTALsw8NqY84G9tQrCwU%3D&rc=0&e_regid=AAAvuA==&mistyped=6&fdid=7429a66b-5f8e-4123-a9be-15e7cf51a3fb&lc=GB&simnum=1&e_skey_val=etrl8VbLFb89XGTM3IZ0AEjwKJK9uY37jQ0fvuSzVhw=&lg=en&id=2ea1db5ed3477c33a883dc6a2ae040b818f5d75d&e_keytype=BQ&e_ident=W-WNcrxBA4Qz0ucsNRlRcIdRo_QDddTe1h7IBOEH2Bo=&network_ratio_type=1&expid=NdHvYk6hSwxYPNxxr0iEKw== response {"login":"917347245162","reason":"missing","status":"fail"}

This error does not occur every time but is very frequent, with a probability of 30%.

At first I thought it was a whatsapp version problem, so I replaced it with [WhatsApp/2.23.8.76 SMBA/8.0.0 Device/Samsung-star2lte] but the problem still exists....

LuckymanCN commented 1 year ago

I also guessed that the reason for the error was the mobile phone number. Until a bug appeared in my program. I sent incorrect otp to whatsapp. Seventy percent of the responses are {"login":"917030598714","reason":"mismatch","retry_after":2,"status":"fail"} but thirty percent of the responses are {" login":"919704653696","reason":"missing","status":"fail"} If you need this error data tell me, I have a lot.