status: fail param: number reason: bad_param
trying to use yowsup to register a phone number and getting the following error:
{'Accept': 'text/json', 'User-Agent': 'WhatsApp/2.11.1 S40Version/14.26 Device/Nokia302'} cc=972&in=737****&lc=US&lg=en&mcc=000&mnc=000&method=sms&id=092fd29a6e8fa38e46f1107e10aba386&token=29af7699e6e46f2989f2169412e3dadf Opening connection to v.whatsapp.net Sending GET request to /v2/code?cc=972&in=737****&lc=US&lg=en&mcc=000&mnc=000&method=sms&id=092fd29a6e8fa38e46f1107e10aba386&token=29af7699e6e46f2989f2169412e3dadf WACodeRequest: {"status":"fail","reason":"bad_param","param":"number"}
status: fail param: number reason: bad_param
using the following command line: python2.6 ./yowsup-cli -d -r sms -c ./config.example
i've searched the web and got to people having the same issue, but it doesnt cut to the point.
please help..
thanks
cc and number entered incorrectly in config. thats your problem.
this is config.example content: cc=972 phone=972737******* id=6EFE5C296023 password=MDAwMDAwMDAwMA==
phone shouldnt contain cc ;)
tried it already. same error, and it even looks like it does have to include cc, because it cuts the number if it doesnt and sends the number with the first 3 digits missing..
https://coderus.openrepos.net/whitesoft/whatsapp_sms On behalf of coderus
:) nice service, but i dont feel safe to use it, would like to find the problem on my side.
you dont trust me? really? :D
weird ha? :)
weird you, haha :)
Registration from yowsup-cli never worked for me Thx to coderus link I was able to register and use yowsup-cli without any issues Special thanks as well to tgalal and all the guys who made this possible Cheers
Same issue for me. In my case it sends the number with the first TWO digits missing. Why is this happening?
I found the answer. In my case, I fixed it by putting country code (34 in my case) in cc and AGAIN in phone, before the number.
$ ./yowsup-cli --requestcode voice -c config.me --debug
{'Accept': 'text/json', 'User-Agent': 'WhatsApp/2.12.15 S40Version/14.26 Device/Nokia302'}
cc=852&in=26356164&lc=US&lg=en&mcc=000&mnc=000&method=voice&id=5a921c83cd978e1ca431f7c638f908df&token=ae5d84fdc65b2d7e2ace2505201d055f
Opening connection to v.whatsapp.net
Sending GET request to /v2/code?cc=852&in=26356164&lc=US&lg=en&mcc=000&mnc=000&method=voice&id=5a921c83cd978e1ca431f7c638f908df&token=ae5d84fdc65b2d7e2ace2505201d055f
WACodeRequest: {"status":"fail","reason":"bad_param","param":"number"}
status: fail
param: number
reason: bad_param
The config file is:
$ cat config.me
cc=852 #if not specified it will be autodetected
phone=85226356164
id=85226356164
password=
Did I missed something?
p.s. I also tried https://coderus.openrepos.net/whitesoft/whatsapp_sms, same error.
{'Accept': 'text/json', 'User-Agent': 'WhatsApp/2.12.15 S40Version/14.26 Device/Nokia302'}
cc=01&in=35704846&lc=US&lg=en&mcc=000&mnc=000&method=sms&id=7e5fab578b6897867dd27fdbb0d206fc&token=ff209e4e6942df99a56321c0eee10858
Opening connection to v.whatsapp.net
Sending GET request to /v2/code?cc=01&in=35704846&lc=US&lg=en&mcc=000&mnc=000&method=sms&id=7e5fab578b6897867dd27fdbb0d206fc&token=ff209e4e6942df99a56321c0eee10858
WACodeRequest: {"status":"fail","reason":"bad_param","param":"number"}
status: fail
param: number
reason: bad_param
On https://coderus.openrepos.net/whitesoft/whatsapp_sms I get:
Code request failed. Reason: no cell routes to make call for your operator. Please try other method [sms/voice]
And a similar message when attemping sms.
In yowsup you added a bad_param. The 'no_routes' error its because the mobile network, nothing to do there. Try adding your mnc and mcc data