tgalal / yowsup

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

Error on registration #3137

Open iskeltan opened 2 years ago

iskeltan commented 2 years ago

Describe the bug Hello everyone, I did get request code successfully but an error has occurred when registration register step.

Debug output

yowsup-cli registration --register xxx --config-phone xxx772055xxx --config-cc xxx --config-mcc xxx --config-mnc 01 --config-sim_mcc xx --config-sim_mnc 02 -E ios --debug

D 2022-04-26 01:32:39,230 yowsup.env.env - Current env changed to ios
D 2022-04-26 01:32:39,230 yowsup.config.manager - load(path_or_profile_name=xxx772055xxx, profile_only=False)
D 2022-04-26 01:32:39,230 yowsup.config.manager - _load_path(path=xxx772055xxx)
D 2022-04-26 01:32:39,230 yowsup.config.manager - _load_path couldn't find the path: xxx772055xxx
D 2022-04-26 01:32:39,230 yowsup.config.manager - path_or_profile_name is not a path, using it as profile name
D 2022-04-26 01:32:39,230 yowsup.config.manager - Detecting config for profile=xxx772055xxx, dir=/Users/xxx/Library/Application Support/yowsup/xxx772055xxx
D 2022-04-26 01:32:39,230 yowsup.config.manager - Trying /Users/xxx/Library/Application Support/yowsup/xxx772055xxx/config.yo
D 2022-04-26 01:32:39,231 yowsup.config.manager - Trying /Users/xxx/Library/Application Support/yowsup/xxx772055xxx/config.json
D 2022-04-26 01:32:39,231 yowsup.config.manager - _load_path(path=/Users/xxx/Library/Application Support/yowsup/xxx772055xxx/config.json)
D 2022-04-26 01:32:39,231 yowsup.config.manager - Detected config type: json
D 2022-04-26 01:32:39,231 yowsup.config.manager - Opening config for reading
D 2022-04-26 01:32:39,231 yowsup.config.manager - Loading config
D 2022-04-26 01:32:39,232 yowsup.profile.profile - Constructed Profile(profile_name=xxx772055xxx)
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.2
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-04-26 01:32:39,302 yowsup.common.http.warequest - Passing Config to WARequest is deprecated, pass a YowProfile instead
D 2022-04-26 01:32:39,302 yowsup.profile.profile - Constructed Profile(profile_name=xxx772055xxx)
D 2022-04-26 01:32:39,302 yowsup.axolotl.factory - get_manager(profile_name=xxx772055xxx, username=xxx772055xxx)
D 2022-04-26 01:32:39,305 yowsup.axolotl.manager - Initialized AxolotlManager [username=xxx772055xxx, db=/Users/xxx/Library/Application Support/yowsup/xxx772055xxx/axolotl.db]
D 2022-04-26 01:32:39,305 yowsup.axolotl.manager - load_latest_signed_prekey
D 2022-04-26 01:32:39,305 yowsup.common.http.warequest - send(parser=None, encrypt=True, preview=False)
D 2022-04-26 01:32:39,305 yowsup.common.http.warequest - sendGetRequest(parser=None, encrypt_params=True, preview=False)
D 2022-04-26 01:32:39,306 yowsup.common.http.warequest - Encrypting parameters
D 2022-04-26 01:32:39,306 yowsup.common.http.warequest - pre-encrypt (encoded) parameters =
cc=xxx&in=772055088&lg=en&lc=GB&mistyped=6&authkey=CnLbaKcrJIfbrbXW3G5Mak6CygrjyhRR2kQ58Q5Ru2M&e_regid=U4knGA&e_keytype=BQ&e_ident=GLTKF4EtU7U9YBLDjfYhFF%2d2nS7QdWAJuzhslFbT1xk&e_skey_id=AAAA&e_skey_val=ORs598D6NNZ7qWfh8H1LJKQ4m%2ddJAKgoGM85dQ%2dOawc&e_skey_sig=4oeQZd19mDEx19nq15Yb%2dNdqTaRr2OwS%5fJAqikIIVJpNdwZRTpPUAhTyVwci%2d9wAWl0cv1yQAsQ%5fzu8mtgdkhQ&fdid=a65e76df%2d5043%2d4617%2da662%2d57dfce84bed8&expid=yeUNom7lQIar1wzfPgSlXg&network_radio_type=1&simnum=1&hasinrc=1&pid=1742&rc=0&id=%ce%a7%19%1a%cd%db%08%df%00%7b%7fu%e3%b5%b8%dc%af%a6%bdC&code=8949xx
D 2022-04-26 01:32:39,308 yowsup.common.http.warequest - sendRequest(host=v.whatsapp.net, port=443, path=/v2/register, headers={'User-Agent': 'WhatsApp/2.22.5.71 iOS/15.3.1 Device/Apple-iPhone 7', 'Accept': 'text/json'}, params=[('ENC', b'BCTMBH+b5X914GvVmFIYD5gvIw9mWBTUMADalU3EBmLas4eokc/gOhlvqs2IHcHj2ZGf196zkxq8Ie+wf6G/KmesP0/eFPkFlYbVk5BrtdjehmZObau6Aj1BML0lL1UQzjB7ZImyc1qHDHNuq/oa66nNQhRYX40v3bS+OA+Gi94TcP1pWOz9hcYUqRxzywHZowC53zd7LMfUYkIYw4v0+7Vh6sC9mtIm7kxPw0BVqkTPlPPxPh5K4x7KmtiHyxlcDEWejDr1bGOZzH6mxZj3z3RGwgdplMJPJht+KGOY8T87Bh0TTKa4q5Pa72K+KCkI+SueMvEUyihrJwUUNbbqK8JHegmdN6AsvD1+zaMECw3F5y/6WC+ysXQY8EFeKJL+hS/gMCNy0Y5Lty+VZstM/vi33AQ7F5QKcq3RHT44cx/r7LaVu0uX5pqsu9qgekgGiAyAdEgbMjAsvA2kiPwRPzaYgNPSSWcPhV0+/lJOxiBD9a2bcmFopxi750H3mwoFxwtyXtmV8s6OYWNG8MEvFT3YG2Dfdq1BWAJqc4X0EeJ37q98U6Eez+aTyYI7ek/w6Flr6yYNOAkytTy74t6mqGfWeU3kgulhuDdZbpqWLhVOItT9IfpIr1xK0XXKAsZ48gVkslqsC6dHafC+XZTbvkGJWhUsHjCtM4i9lBDeDNAnijEtipjfQz9uUlAYEcQtDrnEqcpX7KlluB3BQR1Nu3WopHiM0KUojb+OvaVtokY3z+x3EzFtxUXBWdgdK47ZK3tdvRlgpt/lBU02TusWvoQVcmMfZ0CUaAxUcAcNpsQ+')], reqType=GET, preview=False)
D 2022-04-26 01:32:39,309 yowsup.common.http.warequest - Opening connection to v.whatsapp.net
D 2022-04-26 01:32:39,330 yowsup.common.http.warequest - Sending GET request to /v2/register?ENC=BCTMBH%2bb5X914GvVmFIYD5gvIw9mWBTUMADalU3EBmLas4eokc%2fgOhlvqs2IHcHj2ZGf196zkxq8Ie%2bwf6G%2fKmesP0%2feFPkFlYbVk5BrtdjehmZObau6Aj1BML0lL1UQzjB7ZImyc1qHDHNuq%2foa66nNQhRYX40v3bS%2bOA%2bGi94TcP1pWOz9hcYUqRxzywHZowC53zd7LMfUYkIYw4v0%2b7Vh6sC9mtIm7kxPw0BVqkTPlPPxPh5K4x7KmtiHyxlcDEWejDr1bGOZzH6mxZj3z3RGwgdplMJPJht%2bKGOY8T87Bh0TTKa4q5Pa72K%2bKCkI%2bSueMvEUyihrJwUUNbbqK8JHegmdN6AsvD1%2bzaMECw3F5y%2f6WC%2bysXQY8EFeKJL%2bhS%2fgMCNy0Y5Lty%2bVZstM%2fvi33AQ7F5QKcq3RHT44cx%2fr7LaVu0uX5pqsu9qgekgGiAyAdEgbMjAsvA2kiPwRPzaYgNPSSWcPhV0%2b%2flJOxiBD9a2bcmFopxi750H3mwoFxwtyXtmV8s6OYWNG8MEvFT3YG2Dfdq1BWAJqc4X0EeJ37q98U6Eez%2baTyYI7ek%2fw6Flr6yYNOAkytTy74t6mqGfWeU3kgulhuDdZbpqWLhVOItT9IfpIr1xK0XXKAsZ48gVkslqsC6dHafC%2bXZTbvkGJWhUsHjCtM4i9lBDeDNAnijEtipjfQz9uUlAYEcQtDrnEqcpX7KlluB3BQR1Nu3WopHiM0KUojb%2bOvaVtokY3z%2bx3EzFtxUXBWdgdK47ZK3tdvRlgpt%2flBU02TusWvoQVcmMfZ0CUaAxUcAcNpsQ%2b
I 2022-04-26 01:32:40,009 yowsup.common.http.warequest - b'{"login":"xxx772055xxx","reason":"missing","status":"fail"}\n'
{
    "__version__": 1,
    "cc": "xxx",
    "client_static_keypair": "cF/kt4H8rtbF1+uFcVUIZgGLofNQ1DxWe73p+P3qsGYKcttopyskh9uttxxxxxxxxw==",
    "expid": "yeUNom7lQIar1xxxxxx==",
    "fdid": "a65e76df-5043-4617-a662-xxx",
    "id": "zqcZGs3bCN8Ae39147W43K+xxx=",
    "login": "xxx772055xxx",
    "mcc": "xxx",
    "mnc": "01",
    "phone": "xxx772055xxx",
    "sim_mcc": "xxx",
    "sim_mnc": "02"
}
status: b'fail'
login: b'xxx772055xxx'

Versions

yowsup-cli v3.2.1
using:
  yowsup v3.3.0
  consonance v0.1.5
  dissononce v0.34.3
  python-axolotl v0.2.2
  cryptography v36.0.2
  protobuf v4.0.0rc2

I added a new environment for ios. I passed an error on this way.

To Reproduce

I get sms otp but don't complete registration. I've tried 3 different phone number but result is same.

OS: Mac os

Rodrigosolari commented 2 years ago

you can try it with -v to see the complete log, another idea, did you change the registration from Android to IOS?