yowsup icon indicating copy to clipboard operation
yowsup copied to clipboard

status: fail param: number reason: bad_param

Open maimonoded opened this issue 12 years ago • 15 comments

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

maimonoded avatar Dec 09 '13 12:12 maimonoded

cc and number entered incorrectly in config. thats your problem.

CODeRUS avatar Dec 09 '13 12:12 CODeRUS

this is config.example content: cc=972 phone=972737******* id=6EFE5C296023 password=MDAwMDAwMDAwMA==

maimonoded avatar Dec 09 '13 12:12 maimonoded

phone shouldnt contain cc ;)

CODeRUS avatar Dec 09 '13 12:12 CODeRUS

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..

maimonoded avatar Dec 09 '13 12:12 maimonoded

https://coderus.openrepos.net/whitesoft/whatsapp_sms On behalf of coderus

mrtass avatar Dec 09 '13 12:12 mrtass

:) nice service, but i dont feel safe to use it, would like to find the problem on my side.

maimonoded avatar Dec 09 '13 12:12 maimonoded

you dont trust me? really? :D

CODeRUS avatar Dec 09 '13 12:12 CODeRUS

weird ha? :)

maimonoded avatar Dec 09 '13 12:12 maimonoded

weird you, haha :)

CODeRUS avatar Dec 09 '13 12:12 CODeRUS

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

mrtass avatar Dec 09 '13 12:12 mrtass

Same issue for me. In my case it sends the number with the first TWO digits missing. Why is this happening?

antonio9213 avatar Dec 21 '13 17:12 antonio9213

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.

antonio9213 avatar Dec 21 '13 17:12 antonio9213

$ ./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.

horaceho avatar Jun 20 '14 08:06 horaceho

{'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.

WhyNotHugo avatar Oct 18 '14 06:10 WhyNotHugo

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

mgp25 avatar Oct 18 '14 08:10 mgp25