tgalal / yowsup

The WhatsApp lib
GNU General Public License v3.0
7.09k stars 2.23k forks source link

failed to register number. Tried with 2 already. --debug included. "param":"number","reason":"bad_param" #3116

Open efjcz opened 2 years ago

efjcz commented 2 years ago

Hi

I edited the last 4 digits from number because I do not want to make this public

It is my first contact with the platform and I get this error all the time

I already tried to use 2 different numbers

both have WhatsApp connected on a mobile device

I also tried to use other MNCs from VIVO SA, but I get this error all the time

Any idea what I could do?

# yowsup-cli registration --requestcode sms --config-phone 5595905**** --config-cc 55 --config-mcc 724 --config-mnc 23
E 2022-01-17 19:02:10,525 yowsup.config.manager - Could not find a config for profile=5595905****, paths checked: 5595905****:/root/.config/yowsup/5595905****/config.yo:/root/.config/yowsup/5595905****/config.json
yowsup-cli  v3.2.1
yowsup      v3.3.0

Copyright (c) 2012-2019 Tarek Galal
http://www.openwhatsapp.org

This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating:
http://openwhatsapp.org/yowsup/donate

W 2022-01-17 19:02:10,604 yowsup.common.http.warequest - Passing Config to WARequest is deprecated, pass a YowProfile instead
I 2022-01-17 19:02:10,806 yowsup.common.http.warequest - b'{"login":"5595905****","param":"number","reason":"bad_param","status":"fail"}\n'
status: b'fail'
reason: b'bad_param'
param: b'number'
login: b'5595905****'

With the --debug included:

# yowsup-cli registration --requestcode sms --config-phone 5595905**** --config-cc 55 --config-mcc 724 --config-mnc 23 --debug
D 2022-01-17 19:00:02,747 yowsup.config.manager - load(path_or_profile_name=5595905****, profile_only=False)
D 2022-01-17 19:00:02,748 yowsup.config.manager - _load_path(path=5595905****)
D 2022-01-17 19:00:02,749 yowsup.config.manager - _load_path couldn't find the path: 5595905****
D 2022-01-17 19:00:02,749 yowsup.config.manager - path_or_profile_name is not a path, using it as profile name
D 2022-01-17 19:00:02,750 yowsup.config.manager - Detecting config for profile=5595905****, dir=/root/.config/yowsup/5595905****
D 2022-01-17 19:00:02,751 yowsup.config.manager - Trying /root/.config/yowsup/5595905****/config.yo
D 2022-01-17 19:00:02,751 yowsup.config.manager - Trying /root/.config/yowsup/5595905****/config.json
E 2022-01-17 19:00:02,752 yowsup.config.manager - Could not find a config for profile=5595905****, paths checked: 5595905****:/root/.config/yowsup/5595905****/config.yo:/root/.config/yowsup/5595905****/config.json
D 2022-01-17 19:00:02,753 yowsup.profile.profile - Constructed Profile(profile_name=5595905****)
yowsup-cli     v3.2.1
yowsup         v3.3.0
consonance     v0.1.5
dissononce     v0.34.3
python-axolotl v0.2.2
cryptography   v36.0.0
protobuf       v4.0.0rc2

Copyright (c) 2012-2019 Tarek Galal
http://www.openwhatsapp.org

This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating:
http://openwhatsapp.org/yowsup/donate

W 2022-01-17 19:00:02,823 yowsup.common.http.warequest - Passing Config to WARequest is deprecated, pass a YowProfile instead
D 2022-01-17 19:00:02,824 yowsup.profile.profile - Constructed Profile(profile_name=5595905****)
D 2022-01-17 19:00:02,824 yowsup.axolotl.factory - get_manager(profile_name=5595905****, username=5595905****)
D 2022-01-17 19:00:02,826 yowsup.axolotl.manager - Initialized AxolotlManager [username=5595905****, db=/root/.config/yowsup/5595905****/axolotl.db]
D 2022-01-17 19:00:02,827 yowsup.axolotl.manager - load_latest_signed_prekey
D 2022-01-17 19:00:02,829 yowsup.env.env - Env not set, setting it to android
D 2022-01-17 19:00:02,830 yowsup.env.env - Current env changed to android 
D 2022-01-17 19:00:02,831 yowsup.common.http.warequest - send(parser=None, encrypt=True, preview=False)
D 2022-01-17 19:00:02,831 yowsup.common.http.warequest - sendGetRequest(parser=None, encrypt_params=True, preview=False)
D 2022-01-17 19:00:02,832 yowsup.common.http.warequest - Encrypting parameters
D 2022-01-17 19:00:02,834 yowsup.common.http.warequest - pre-encrypt (encoded) parameters = 
cc=55&in=95905****&lg=en&lc=GB&mistyped=6&authkey=s%2d7bUbCSZOmBBi3H5WXvff1e5D9wR5%2ddzG2Cgpey3B4&e_regid=LU1z9A&e_keytype=BQ&e_ident=Xg9fNkeJsjkWBweZ5WCLLzTskxi4%5fZLuCjYutU%5fdzTs&e_skey_id=AAAA&e_skey_val=flVqfsGPP3QR9vEY0HTKt%5f%5fcAFXyPz9cf%5fjbszKFYVw&e_skey_sig=8hysGRdpIWmaPqef4Q85JYltwpF1bpoptPyjDP2PgMEzHXzWC3TcwrLwBI53PH7yGrCH0wGv0sSugOfpu3V%5fAQ&fdid=779979b8%2d13c9%2d4483%2d9fac%2d3e717365a25a&expid=GmIH6AgaRZ6RjRL76ydk9w&network_radio_type=1&simnum=1&hasinrc=1&pid=1281&rc=0&mcc=724&mnc=023&sim_mcc=000&sim_mnc=000&method=sms&reason=&token=jPKhZKUoHI1LYoCdkzNI9olxEGM%3d&hasav=1&id=%9f8%d4%08%f3%fb%18%ba%1d%93s%d9%3d%df%b2%dcN%c6%9a%2a
D 2022-01-17 19:00:02,840 yowsup.common.http.warequest - sendRequest(host=v.whatsapp.net, port=443, path=/v2/code, headers={'User-Agent': 'WhatsApp/2.21.21.18 Android/8.0.0 Device/samsung-star2lte', 'Accept': 'text/json'}, params=[('ENC', b'hKco4aamfZ822gwGX0GyO09cKGiIjkmSfPn9yeGM3xZvcEbAMTnTpyUNvlE1/NX+qKYEFxANVhpOl7YS+ysK3n6RsOQobRpFpUNCE4AiRpuJnC78AsC9q7TlsrOnv4D0OTv1xwm4AKhmHFEtTtTV37hXmdtrFtQMnHaJEsnp1LAx7drgx5KTGBTQ2yziQNr14TIL38Rq7P1QCHHheKuUSgubiuhppUlRm+1s+58EmiPaxCO/mXL05813Zq4Jt/PGMt+RKhggcuNrGT5SYP5+LKsikmW2qrruUi0Xe5jb3P3G2R/T2lwPfjZraJzTieAYbdgd6tYd05xSUq8664eh74isUNw7OxMtvwoh5gd3AdubBJjHO1B/b+WwsmW1m28dZJ+uy4EHC1HU4WbMZkNhs262SAXTLw7Uzw6jll9qlHJdrW1LgdUjXlBPwZQ+hCjgya8YO07fPm8CkCHwfyTUdix4dwkKyn7kpqespWZZ+F/yOuNOxV79uF0Gpfr/96zNkek4rqsYu9vz+9LZMVouu4ioukG+AZbpBTyuzIxc4nsOItEGmCuUzmrIXdhFU0szbUdCPQRvPEy/OUf+2El6FY06Bps3JysVDSamOxVU4WFKG8kQ/6WDn/GMMq/B1X3dv6qe2U0xtuv9zka1cSs7HFUfXYr4LrVVSB6IpNiMjFdvwL7z+2xp44gTkG9ZJXIl/jehW1/LQJxvQk/g46zKeRQOZ/oZ/nwT1I0p1WUF6RKkiw5glsNUu/i+zY0nnQNzzJi9/gbHCFNblODtWGjxHm0le+/I6Fn1zHGrpJrrOYg0oK4qvEhL7HEsBSmnpIm8Xwn70E/ixNMKyLNpwx+EuKWijYUG7cLfnxDOwzVu6NyxdgsI48qSyBLoAp3vTh9O9L71zA7quPmzqBEVp7ZW/r7kU/CNDNEwgLd+Jg==')], reqType=GET, preview=False)
D 2022-01-17 19:00:02,843 yowsup.common.http.warequest - Opening connection to v.whatsapp.net
D 2022-01-17 19:00:02,853 yowsup.common.http.warequest - Sending GET request to /v2/code?ENC=hKco4aamfZ822gwGX0GyO09cKGiIjkmSfPn9yeGM3xZvcEbAMTnTpyUNvlE1%2fNX%2bqKYEFxANVhpOl7YS%2bysK3n6RsOQobRpFpUNCE4AiRpuJnC78AsC9q7TlsrOnv4D0OTv1xwm4AKhmHFEtTtTV37hXmdtrFtQMnHaJEsnp1LAx7drgx5KTGBTQ2yziQNr14TIL38Rq7P1QCHHheKuUSgubiuhppUlRm%2b1s%2b58EmiPaxCO%2fmXL05813Zq4Jt%2fPGMt%2bRKhggcuNrGT5SYP5%2bLKsikmW2qrruUi0Xe5jb3P3G2R%2fT2lwPfjZraJzTieAYbdgd6tYd05xSUq8664eh74isUNw7OxMtvwoh5gd3AdubBJjHO1B%2fb%2bWwsmW1m28dZJ%2buy4EHC1HU4WbMZkNhs262SAXTLw7Uzw6jll9qlHJdrW1LgdUjXlBPwZQ%2bhCjgya8YO07fPm8CkCHwfyTUdix4dwkKyn7kpqespWZZ%2bF%2fyOuNOxV79uF0Gpfr%2f96zNkek4rqsYu9vz%2b9LZMVouu4ioukG%2bAZbpBTyuzIxc4nsOItEGmCuUzmrIXdhFU0szbUdCPQRvPEy%2fOUf%2b2El6FY06Bps3JysVDSamOxVU4WFKG8kQ%2f6WDn%2fGMMq%2fB1X3dv6qe2U0xtuv9zka1cSs7HFUfXYr4LrVVSB6IpNiMjFdvwL7z%2b2xp44gTkG9ZJXIl%2fjehW1%2fLQJxvQk%2fg46zKeRQOZ%2foZ%2fnwT1I0p1WUF6RKkiw5glsNUu%2fi%2bzY0nnQNzzJi9%2fgbHCFNblODtWGjxHm0le%2b%2fI6Fn1zHGrpJrrOYg0oK4qvEhL7HEsBSmnpIm8Xwn70E%2fixNMKyLNpwx%2bEuKWijYUG7cLfnxDOwzVu6NyxdgsI48qSyBLoAp3vTh9O9L71zA7quPmzqBEVp7ZW%2fr7kU%2fCNDNEwgLd%2bJg%3d%3d
I 2022-01-17 19:00:02,987 yowsup.common.http.warequest - b'{"login":"5595905****","param":"number","reason":"bad_param","status":"fail"}\n'
status: b'fail'
reason: b'bad_param'
param: b'number'
login: b'5595905****'
efjcz commented 2 years ago

I found out the issue

I used the country code, but missed the city code lol

But now I received this error message:

I 2022-01-18 02:28:44,925 yowsup.common.http.warequest - b'{"login":"551195905****","reason":"temporarily_unavailable","retry_after":3600,"status":"fail"}\n'

I will try again tomorrow

ozymoz commented 2 years ago

I found out the issue

I used the country code, but missed the city code lol

But now I received this error message:

I 2022-01-18 02:28:44,925 yowsup.common.http.warequest - b'{"login":"551195905****","reason":"temporarily_unavailable","retry_after":3600,"status":"fail"}\n'

I will try again tomorrow

city code ?