tgalal / yowsup

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

Can't Login - status: fail reason: bad_token - Version: 2.20.197.18 #3002

Open ramyasha-mss opened 4 years ago

ramyasha-mss commented 4 years ago

status: fail reason: bad_token

Suddenly after a lengthy time of operating well, yowsup no longer logs in. In checking, I downloaded the latest Whatsapp APK . I went through the setup process here in this blog, https://iamjagjeetubhi.wordpress.com/2017/09/21/how-to-use-yowsup-the-python-whatsapp-library-in-ubuntu/ which worked before. I keep getting bad_token even after using the dexMD5.py script to get the information I needed to modify the yowsup/env/env_android.py file before building & installing. This is a bit urgent and was working a few days ago. The Whatsapp APK information generated was here:

Version: 2.20.197.18 ClassesDex: +ZPePApgUEaLrsODPbfSDA==

Please include any output as code blocks for proper formatting. For example:

W 2020-08-18 16:21:35,842 yowsup.common.http.warequest - Passing Config to WARequest is deprecated, pass a YowProfile instead
D 2020-08-18 16:21:35,842 yowsup.profile.profile - Constructed Profile(profile_name=962778005885)
D 2020-08-18 16:21:35,842 yowsup.axolotl.factory - get_manager(profile_name=962778005885, username=962778005885)
D 2020-08-18 16:21:35,843 yowsup.axolotl.manager - Initialized AxolotlManager [username=962778005885, db=/root/.config/yowsup/962778005885/axolotl.db]
D 2020-08-18 16:21:35,843 yowsup.axolotl.manager - load_latest_signed_prekey
W 2020-08-18 16:21:35,844 yowsup.common.http.warequest - Passing Config to WARequest is deprecated, pass a YowProfile instead
D 2020-08-18 16:21:35,844 yowsup.profile.profile - Constructed Profile(profile_name=962778005885)
D 2020-08-18 16:21:35,844 yowsup.axolotl.factory - get_manager(profile_name=962778005885, username=962778005885)
D 2020-08-18 16:21:35,844 yowsup.axolotl.manager - Initialized AxolotlManager [username=962778005885, db=/root/.config/yowsup/962778005885/axolotl.db]
D 2020-08-18 16:21:35,845 yowsup.axolotl.manager - load_latest_signed_prekey
D 2020-08-18 16:21:35,845 yowsup.common.http.warequest - send(parser=None, encrypt=True, preview=False)
D 2020-08-18 16:21:35,845 yowsup.common.http.warequest - sendGetRequest(parser=None, encrypt_params=True, preview=False)
D 2020-08-18 16:21:35,845 yowsup.common.http.warequest - Encrypting parameters
D 2020-08-18 16:21:35,845 yowsup.common.http.warequest - pre-encrypt (encoded) parameters = 
cc=962&in=778005885&lg=en&lc=GB&mistyped=6&authkey=oEuT0DqvOzN0Un4OZpPZzr0dpEiHPLtxF2vjJTMylkE&e_regid=FrIjIg&e_keytype=BQ&e_ident=xyAYW%5fDNKvdaJr0a6bpLSbIoTqVWOLUWZx3S3JhmBWY&e_skey_id=AAAA&e_skey_val=thNDjLavU8SllAyyGs3F4WVTebgilnNZnxu8lQJEtGM&e_skey_sig=lsFqVnV5XVe52ajDVZy4MYqIoQwHsZGAe%2d2nsZz1Vf%2dhDj1Wp1%2dBnMxI0DJeC37kmuWzyI343%2d7Tuc1IL%5f9JgQ&fdid=5fbac686%2d1110%2d4f02%2d8a6d%2d18141e423124&expid=Jpv%2dLzWISs%2dzCXeceVJ4Ag&network_radio_type=1&simnum=1&hasinrc=1&pid=9527&rc=0&id=%2dG%96%be%a7%05%1d%fb%60%a5%a7%cd%13%20%5f%1d%2dNB%d4&token=xOC2KgQioj0sKtZHLrqwMFc%2bVco%3d
D 2020-08-18 16:21:35,848 yowsup.common.http.warequest - sendRequest(host=v.whatsapp.net, port=443, path=/v2/exist, headers={'Accept': 'text/json', 'User-Agent': 'WhatsApp/2.20.197 Android/8.0.0 Device/samsung-star2lte'}, params=[('ENC', 'IG7d4/shmhoNp8yxfbHxVSsPYxvT1szvbQtWz6fgUmPfMw15U7i69jUUI898CKOvi7IvfjzZNJXyjwaQQOCEyUw5LVzYvvI6qiX60g1Tp93gZoEUOH4hqP1dR2n87y6si/84mCn14RinnFGqsc8fG/SKkFnsfYHxHC7zMh0B1hXIC+PGJNcahrvPqmSaxgci72eOXsaeRYhtj7lBVy/QWtisrc5xED6Qnec83i7NiSfLX4N3CpL3ldp8eOkzFIG2uTvn7n8It0GKAmD+tKZ47DcTBLBi0O7rax4+CSsAos//dxMWUPAqrqL95/Rmnn0L/2DIBxITXTWh30WcV6UljjKzoaRHKWjdpWmy8mLyHRi9jhmvk8hFCkDqD0UTv94z/FyBVW1zEn6MO9VrpLgkcguN4ZDiupsoo/kxv4sEsCh/XgxknJ8BJ3XjKdYeMp25PqZcDY9msOH1OmuUv3jkkmgUi4J47XBZGunfarxlkO8z5lxP6M7wl4kSPzT9hO7VyNTrTWO126yNjm06iWllNIkQN+USI+PFE2RvXC365ZrlJt3j2tuppSiw0/nd7K/5BQ47TyFdVEDGgCNWd/dddHkoDSb6gq4Wx8Tm1ds//W6DMkiMFSLw7mG+PInBZtz+r2o33BY689DWQeDBM0BqdIrCeKTdY7Goownq8UiPNOMlyV+i4XrZSq6d24i2sB0NKzlBrjHUOiOeHAoy9BN3QIJv/L+EUYBx0B9O0PDxL+idrum5JsOXXdIFMnt237CLn8SB/ZokMQFc0nEVoOB4HPhYZQgVmNxUYl7DpzksIuuBIqHxCAAW2VGdjM7t7W0Cn1T1xg5sa5ie0VLo')], reqType=GET, preview=False)
D 2020-08-18 16:21:35,849 yowsup.common.http.warequest - Opening connection to v.whatsapp.net
D 2020-08-18 16:21:35,851 yowsup.common.http.warequest - Sending GET request to /v2/exist?ENC=IG7d4%2fshmhoNp8yxfbHxVSsPYxvT1szvbQtWz6fgUmPfMw15U7i69jUUI898CKOvi7IvfjzZNJXyjwaQQOCEyUw5LVzYvvI6qiX60g1Tp93gZoEUOH4hqP1dR2n87y6si%2f84mCn14RinnFGqsc8fG%2fSKkFnsfYHxHC7zMh0B1hXIC%2bPGJNcahrvPqmSaxgci72eOXsaeRYhtj7lBVy%2fQWtisrc5xED6Qnec83i7NiSfLX4N3CpL3ldp8eOkzFIG2uTvn7n8It0GKAmD%2btKZ47DcTBLBi0O7rax4%2bCSsAos%2f%2fdxMWUPAqrqL95%2fRmnn0L%2f2DIBxITXTWh30WcV6UljjKzoaRHKWjdpWmy8mLyHRi9jhmvk8hFCkDqD0UTv94z%2fFyBVW1zEn6MO9VrpLgkcguN4ZDiupsoo%2fkxv4sEsCh%2fXgxknJ8BJ3XjKdYeMp25PqZcDY9msOH1OmuUv3jkkmgUi4J47XBZGunfarxlkO8z5lxP6M7wl4kSPzT9hO7VyNTrTWO126yNjm06iWllNIkQN%2bUSI%2bPFE2RvXC365ZrlJt3j2tuppSiw0%2fnd7K%2f5BQ47TyFdVEDGgCNWd%2fdddHkoDSb6gq4Wx8Tm1ds%2f%2fW6DMkiMFSLw7mG%2bPInBZtz%2br2o33BY689DWQeDBM0BqdIrCeKTdY7Goownq8UiPNOMlyV%2bi4XrZSq6d24i2sB0NKzlBrjHUOiOeHAoy9BN3QIJv%2fL%2bEUYBx0B9O0PDxL%2bidrum5JsOXXdIFMnt237CLn8SB%2fZokMQFc0nEVoOB4HPhYZQgVmNxUYl7DpzksIuuBIqHxCAAW2VGdjM7t7W0Cn1T1xg5sa5ie0VLo
I 2020-08-18 16:21:36,583 yowsup.common.http.warequest - {"login":"962778005885","status":"fail","reason":"incorrect","sms_length":6,"voice_length":6,"sms_wait":0,"voice_wait":0,"qr_code":0}

D 2020-08-18 16:21:36,583 yowsup.common.http.warequest - send(parser=None, encrypt=True, preview=False)
D 2020-08-18 16:21:36,583 yowsup.common.http.warequest - sendGetRequest(parser=None, encrypt_params=True, preview=False)
D 2020-08-18 16:21:36,583 yowsup.common.http.warequest - Encrypting parameters
D 2020-08-18 16:21:36,583 yowsup.common.http.warequest - pre-encrypt (encoded) parameters = 
cc=962&in=778005885&lg=en&lc=GB&mistyped=6&authkey=oEuT0DqvOzN0Un4OZpPZzr0dpEiHPLtxF2vjJTMylkE&e_regid=FrIjIg&e_keytype=BQ&e_ident=xyAYW%5fDNKvdaJr0a6bpLSbIoTqVWOLUWZx3S3JhmBWY&e_skey_id=AAAA&e_skey_val=thNDjLavU8SllAyyGs3F4WVTebgilnNZnxu8lQJEtGM&e_skey_sig=lsFqVnV5XVe52ajDVZy4MYqIoQwHsZGAe%2d2nsZz1Vf%2dhDj1Wp1%2dBnMxI0DJeC37kmuWzyI343%2d7Tuc1IL%5f9JgQ&fdid=5fbac686%2d1110%2d4f02%2d8a6d%2d18141e423124&expid=Jpv%2dLzWISs%2dzCXeceVJ4Ag&network_radio_type=1&simnum=1&hasinrc=1&pid=7144&rc=0&id=%2dG%96%be%a7%05%1d%fb%60%a5%a7%cd%13%20%5f%1d%2dNB%d4&mcc=461&mnc=001&sim_mcc=000&sim_mnc=000&method=sms&reason=&token=xOC2KgQioj0sKtZHLrqwMFc%2bVco%3d&hasav=1
D 2020-08-18 16:21:36,587 yowsup.common.http.warequest - sendRequest(host=v.whatsapp.net, port=443, path=/v2/code, headers={'Accept': 'text/json', 'User-Agent': 'WhatsApp/2.20.197 Android/8.0.0 Device/samsung-star2lte'}, params=[('ENC', 'R21EpSZh4PRwbAvdXFTdlY+scic08wA725xCRsObXjPVGzZpAL0iCbW1LeKW5+sRLGX+S0TSXl8Sf6+xXsPEp4dHlm7jDu+PnnfkIc0zM/paDOAW4ZaNQ5en6l4IU9ePpMuJCFsNimscaxRxCyBHgvXp7nqM8uVKRoeMzBKRQeQYlUBP05n95W8QHTaoZrkySuEeuY6Tdz6+D7s/U2TmtCCDnxVYkOmS57VfN6N4/cI9jFW78o9J5vc/Sblb9cWiQrnzXkIIuwfGodbldm6dkn++7nFApVdMysBTfkG6Fzvh9z5/i1+Q9cZLuNnMtA+wFnY2sPOAm39HZalaarWgtKCAM1tbOTjq4/0oxIuUkNOC+mokAX7ftZncvSWkzpblUE3QuZMr9oUHIkzxStxNMPil1aypVAoEhYM/1MzgOQPzbSxUFu7mB4kJbjaJrDPyt1Cc5NvygxLwPOYZkO4tssa89ZRUDxpxjlV9r1+lKfzE+uCIlBHUoR96qjgfTeY9rWb8gxKHZCN4haEqtVPHBHpnrvkgmGncp93D+y00/BAlW6Ud4y5TlDIoOP4mrVlNP6PJzQz9tp7RyVur9kv15YChUwqHjM/JiyS/DimJ3FMBcRMaGYzQgjKwfjA0pLWB96GL9Lx34DvXDK+I/PtsFN6OgPga9zhteT4Zy2DbUKQQL4N0rz2kJh4Kk7ZQA5nIS+FjpnJIuAiPVGTzHxPbInEgnmkI7eLfMh4Qe64ikGvm0f1qQi69iSgDFFmDbjRuQ1tKOXjPYeT7MCCYI0Kan0TgyyHfFUlRZj9iDx4P6kHzKjsqeHO7AKvbiAngJ+LrhWD+H+8IDwDgmEGskEbpeaUwDhPLIfXvYPVrDTjmszsKL6m9vBK8OTqKjRj+W1+wvEd/Fp4YMUPkp5MEOTJGFuFdgz2vHODXjKUCjsyMgQ==')], reqType=GET, preview=False)
D 2020-08-18 16:21:36,587 yowsup.common.http.warequest - Opening connection to v.whatsapp.net
D 2020-08-18 16:21:36,588 yowsup.common.http.warequest - Sending GET request to /v2/code?ENC=R21EpSZh4PRwbAvdXFTdlY%2bscic08wA725xCRsObXjPVGzZpAL0iCbW1LeKW5%2bsRLGX%2bS0TSXl8Sf6%2bxXsPEp4dHlm7jDu%2bPnnfkIc0zM%2fpaDOAW4ZaNQ5en6l4IU9ePpMuJCFsNimscaxRxCyBHgvXp7nqM8uVKRoeMzBKRQeQYlUBP05n95W8QHTaoZrkySuEeuY6Tdz6%2bD7s%2fU2TmtCCDnxVYkOmS57VfN6N4%2fcI9jFW78o9J5vc%2fSblb9cWiQrnzXkIIuwfGodbldm6dkn%2b%2b7nFApVdMysBTfkG6Fzvh9z5%2fi1%2bQ9cZLuNnMtA%2bwFnY2sPOAm39HZalaarWgtKCAM1tbOTjq4%2f0oxIuUkNOC%2bmokAX7ftZncvSWkzpblUE3QuZMr9oUHIkzxStxNMPil1aypVAoEhYM%2f1MzgOQPzbSxUFu7mB4kJbjaJrDPyt1Cc5NvygxLwPOYZkO4tssa89ZRUDxpxjlV9r1%2blKfzE%2buCIlBHUoR96qjgfTeY9rWb8gxKHZCN4haEqtVPHBHpnrvkgmGncp93D%2by00%2fBAlW6Ud4y5TlDIoOP4mrVlNP6PJzQz9tp7RyVur9kv15YChUwqHjM%2fJiyS%2fDimJ3FMBcRMaGYzQgjKwfjA0pLWB96GL9Lx34DvXDK%2bI%2fPtsFN6OgPga9zhteT4Zy2DbUKQQL4N0rz2kJh4Kk7ZQA5nIS%2bFjpnJIuAiPVGTzHxPbInEgnmkI7eLfMh4Qe64ikGvm0f1qQi69iSgDFFmDbjRuQ1tKOXjPYeT7MCCYI0Kan0TgyyHfFUlRZj9iDx4P6kHzKjsqeHO7AKvbiAngJ%2bLrhWD%2bH%2b8IDwDgmEGskEbpeaUwDhPLIfXvYPVrDTjmszsKL6m9vBK8OTqKjRj%2bW1%2bwvEd%2fFp4YMUPkp5MEOTJGFuFdgz2vHODXjKUCjsyMgQ%3d%3d
I 2020-08-18 16:21:37,035 yowsup.common.http.warequest - {"login":"XXXXXXXXXXX","status":"fail","reason":"bad_token"}

status: fail
reason: bad_token
login: XXXXXXXXXXXX

Config file

I wasn't able to generate a configuration file since the SMS request didn't work.

Versions

Python 3.6.9 python3 yowsup-cli version yowsup-cli v3.2.0 using: yowsup v3.2.3 consonance v0.1.3-1 dissononce v0.34.3 python-axolotl v0.2.3 cryptography v2.9.2 protobuf v3.12.2

If you are not using a released version but code directly from the repository, please indicate the commit hash.

OS (please complete the following information): Ubuntu 18.0.4

ramyasha-mss commented 4 years ago

Can anyone assist in getting the proper token for the latest version of the Whatsapp APK

fajarnurprasetyo commented 4 years ago

@ramyasha-mss #2979

riku2015 commented 4 years ago

if you change version Version: 2.20.197.18 to Version: 2.20.197 then it no error but it just disconnect. im struggling with same issue..

ramyasha-mss commented 4 years ago

@fajarnurprasetyo thank you but this isn't the issue I'm facing. It's almost like the token is being extracted incorrectly. I did a fresh installation of a virtual machine as well to try to resolve the problem but still no go.

ramyasha-mss commented 4 years ago

@riku2015 I'm only using 3 octets not 4.

riku2015 commented 4 years ago

i have exact same token as you have. have no idea whats wrong too. lets wait if someone else got issues and come here help

mostepunk commented 4 years ago

This problem was solved many times. Use search on issues

ramyasha-mss commented 4 years ago

Hello, I've tried again to download, compile, and register. I've successfully reached the registration part and received the code. When I try to register the device though it tells me the following error:

W 2020-09-03 10:16:29,430 yowsup.common.http.warequest - Passing Config to WARequest is deprecated, pass a YowProfile instead I 2020-09-03 10:16:29,967 yowsup.common.http.warequest - b'{"login":"XXXXXXXXXXXXXXXX","status":"fail","reason":"missing"}\n'

Any ideas? The current class and version are:

_MD5_CLASSES = "GP/EmE/Av2+/WYh2tY7QzQ=="
_VERSION = "2.20.198.16"

The one thing I'd like to ask though, is would I have to edit the _KEY ? I had everything working on a previous release and someone accidentally registered the phone again and kicked out the yowsup so in trying to re-register it now won't work.

mostepunk commented 4 years ago

Before you begin to register sim card, you should insert into your phone register in whatsapp and send several messages to anybody and receive from anyone. After that, you can register in yowsup client. Before you begin to do it you should modificate these files in yowsup client.

detailed manual

ramyasha-mss commented 4 years ago

@fanishe I'm no expert in this kind of edit or programming language. Aren't these files just available for download and update or as part of the master or forked copy? Would really appreciate the help. I need to get this going and I'm more of an Infrastructure guy than a programmer/developer.

Oh, and to your point, this was previously working and with no issues. One of the staff re-registered the phone by accident, and then it broke. Now I'm trying to get it working again.

mostepunk commented 4 years ago

@ramyasha-mss check if the number is not banned. Insert into a phone and try to register in whatsapp. If it won't work buy new sim card.

If it not banned, the problem is different. Open files that I posted higher, and compare with green lines in files.

If these files was modifyed correct, and problem wasn't solved, check this issue

P.S. When you download some project from github, it becomes your local copy of files from owner repository. You can do whatever you want to do on it. And if you broke something after modifying, you can delete folder, and download again.

ramyasha-mss commented 4 years ago

@fanishe thanks for the info and the update. I'm aware of the process of git and downloading a local copy. What I was looking for is the full copy edited and ready since I'm no expert in editing, etc. I'm trying again today downloading the latest Whatsapp APK, the request went out and waiting for the registration code. We'll see shortly.

ramyasha-mss commented 4 years ago

@fanishe a quick update. So it looks like I completed a successful registration. When I try to run a test, it connects, and just hangs:

I 2020-09-06 16:19:27,712 yowsup.layers.network.layer - Connecting to e9.whatsapp.net:443

W 2020-09-06 16:18:25,439 yowsup.common.http.warequest - Passing Config to WARequest is deprecated, pass a YowProfile instead I 2020-09-06 16:18:27,296 yowsup.common.http.warequest - b'{"status":"ok","login":"XXXXXXXXXXX","type":"existing","edge_routing_info":"CAgIBQ==","security_code_set":false}\n'

} status: b'ok' login: b'XXXXXXXXXXXx' type: b'existing' edge_routing_info: b'CAgIBQ=='

ramyasha-mss commented 4 years ago

A quick update, when trying to login via the CLI, I got the following error:

D 2020-09-06 16:23:22,827 yowsup.layers.logger.layer - rx:

0x08080805

general: Login Failed, reason: None D 2020-09-06 16:23:22,827 yowsup.layers.network.dispatcher.dispatcher_asyncore - disconnect D 2020-09-06 16:23:22,827 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_close D 2020-09-06 16:23:22,827 yowsup.layers.network.layer - Disconnected D 2020-09-06 16:23:22,828 yowsup.layers.logger.layer - rx:

general: Login Failed, reason: None D 2020-09-06 16:23:22,828 yowsup.layers.network.dispatcher.dispatcher_asyncore - disconnect D 2020-09-06 16:23:22,828 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_close D 2020-09-06 16:23:22,828 yowsup.layers.network.layer - Disconnected D 2020-09-06 16:23:22,846 yowsup.layers.axolotl.layer_control - Disconnected, reboot_connect? = False general: Disconnected: Authentication Failure [offline]: [offline]:D 2020-09-06 16:23:22,947 yowsup.layers.axolotl.layer_control - Disconnected, reboot_connect? = False

general: Disconnected: Authentication Failure [offline]:

I modified the files you noted to me.

ramyasha-mss commented 4 years ago

So I've made some progress, after recompiling and reinstalling it connects then disconnects. What I don't get is that this was all working before and suddenly stopped. :

D 2020-09-08 09:31:49,080 yowsup.layers.network.layer - Created asyncore dispatcher I 2020-09-08 09:31:49,080 yowsup.layers.network.layer - Connecting to e12.whatsapp.net:443 D 2020-09-08 09:31:49,080 yowsup.layers.network.dispatcher.dispatcher_asyncore - connect(('e12.whatsapp.net', 443)) D 2020-09-08 09:31:49,281 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_connect D 2020-09-08 09:31:49,281 yowsup.layers.network.layer - Connected D 2020-09-08 09:31:49,281 yowsup.axolotl.factory - get_manager(profile_name=XXXXXXXXXXXX, username=XXXXXXXXXXXx) D 2020-09-08 09:31:49,282 yowsup.axolotl.manager - Initialized AxolotlManager [username=962778005885, db=/root/.config/yowsup/962778005885/axolotl.db] D 2020-09-08 09:31:49,282 yowsup.axolotl.manager - level_prekeys(force=False) D 2020-09-08 09:31:49,286 yowsup.axolotl.manager - len(pending_prekeys) = 810 D 2020-09-08 09:31:49,286 yowsup.axolotl.manager - load_unsent_prekeys D 2020-09-08 09:31:49,287 yowsup.layers.noise.layer - Received auth event D 2020-09-08 09:31:49,287 yowsup.env.env - Env not set, setting it to android D 2020-09-08 09:31:49,287 yowsup.env.env - Current env changed to android D 2020-09-08 09:31:49,287 yowsup.layers.noise.layer - Performing handshake [username= 962778005885, passive=False] D 2020-09-08 09:31:49,287 yowsup.layers.noise.layer - Starting handshake worker D 2020-09-08 09:31:49,620 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_close D 2020-09-08 09:31:49,620 yowsup.layers.network.layer - Disconnected D 2020-09-08 09:31:49,690 yowsup.layers.axolotl.layer_control - Disconnected, reboot_connect? = False general: Disconnected:

mocart2 commented 4 years ago

+1 i hame same erron when try to login,

    _MD5_CLASSES = "cNybSe4rrqOXHTefQvd8VQ=="
    _VERSION = "2.20.194"
[offline]:/L
D 2020-09-19 20:47:18,173 yowsup.layers.network.layer - Created asyncore dispatcher
I 2020-09-19 20:47:18,173 yowsup.layers.network.layer - Connecting to e12.whatsapp.net:443
D 2020-09-19 20:47:18,173 yowsup.layers.network.dispatcher.dispatcher_asyncore - connect(('e12.whatsapp.net', 443))
D 2020-09-19 20:47:18,268 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_connect
D 2020-09-19 20:47:18,268 yowsup.layers.network.layer - Connected
D 2020-09-19 20:47:18,268 yowsup.axolotl.manager - level_prekeys(force=False)
D 2020-09-19 20:47:18,271 yowsup.axolotl.manager - len(pending_prekeys) = 812
D 2020-09-19 20:47:18,271 yowsup.axolotl.manager - load_unsent_prekeys
I 2020-09-19 20:47:18,274 yowsup.axolotl.manager - Loaded 812 unsent prekeys
D 2020-09-19 20:47:18,274 yowsup.layers.noise.layer - Received auth event
D 2020-09-19 20:47:18,274 yowsup.layers.noise.layer - Performing handshake [username= 7964*******7, passive=True]
D 2020-09-19 20:47:18,274 yowsup.layers.noise.layer - Starting handshake worker
D 2020-09-19 20:47:18,487 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_close
D 2020-09-19 20:47:18,487 yowsup.layers.network.layer - Disconnected
D 2020-09-19 20:47:18,494 yowsup.layers.axolotl.layer_control - Disconnected, reboot_connect? = False
general: Disconnected:
hossinasaadi commented 4 years ago

+1 i hame same erron when try to login,

    _MD5_CLASSES = "cNybSe4rrqOXHTefQvd8VQ=="
    _VERSION = "2.20.194"
[offline]:/L
D 2020-09-19 20:47:18,173 yowsup.layers.network.layer - Created asyncore dispatcher
I 2020-09-19 20:47:18,173 yowsup.layers.network.layer - Connecting to e12.whatsapp.net:443
D 2020-09-19 20:47:18,173 yowsup.layers.network.dispatcher.dispatcher_asyncore - connect(('e12.whatsapp.net', 443))
D 2020-09-19 20:47:18,268 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_connect
D 2020-09-19 20:47:18,268 yowsup.layers.network.layer - Connected
D 2020-09-19 20:47:18,268 yowsup.axolotl.manager - level_prekeys(force=False)
D 2020-09-19 20:47:18,271 yowsup.axolotl.manager - len(pending_prekeys) = 812
D 2020-09-19 20:47:18,271 yowsup.axolotl.manager - load_unsent_prekeys
I 2020-09-19 20:47:18,274 yowsup.axolotl.manager - Loaded 812 unsent prekeys
D 2020-09-19 20:47:18,274 yowsup.layers.noise.layer - Received auth event
D 2020-09-19 20:47:18,274 yowsup.layers.noise.layer - Performing handshake [username= 79644269337, passive=True]
D 2020-09-19 20:47:18,274 yowsup.layers.noise.layer - Starting handshake worker
D 2020-09-19 20:47:18,487 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_close
D 2020-09-19 20:47:18,487 yowsup.layers.network.layer - Disconnected
D 2020-09-19 20:47:18,494 yowsup.layers.axolotl.layer_control - Disconnected, reboot_connect? = False
general: Disconnected:

see https://github.com/tgalal/yowsup/issues/3004#issuecomment-688215688

mocart2 commented 4 years ago

i changed it, to:

_MD5_CLASSES = "PzuZ7EJNcuXEealGEJT6+g=="
    _VERSION = "2.20.134"

but i have new troible:

[offline]:/L
I 2020-09-19 21:51:52,866 yowsup.layers.network.layer - Connecting to e3.whatsapp.net:443
I 2020-09-19 21:51:52,969 yowsup.axolotl.manager - Loaded 812 unsent prekeys
general: Disconnected:
hossinasaadi commented 4 years ago

i changed it, to:

_MD5_CLASSES = "PzuZ7EJNcuXEealGEJT6+g=="
    _VERSION = "2.20.134"

but i have new troible:

[offline]:/L
I 2020-09-19 21:51:52,866 yowsup.layers.network.layer - Connecting to e3.whatsapp.net:443
I 2020-09-19 21:51:52,969 yowsup.axolotl.manager - Loaded 812 unsent prekeys
general: Disconnected:

search for number that you register 79644***** you should found folder with number name . delete that folder and register again.

mocart2 commented 4 years ago

I deleted folder rm -rf /root/.config/yowsup/7964***** and try to use other phone number, registered is ok, but login is trouble:

[offline]:/L
I 2020-09-19 22:17:28,420 yowsup.layers.network.layer - Connecting to e11.whatsapp.net:443
I 2020-09-19 22:17:28,515 yowsup.axolotl.manager - Generating 812 prekeys, current max_prekey_id=0
I 2020-09-19 22:17:28,990 yowsup.axolotl.manager - Storing 812 prekeys
I 2020-09-19 22:17:31,882 yowsup.axolotl.manager - Loaded 812 unsent prekeys
general: Disconnected:
[offline]:
root@instance-20200701-2158:/home/ubuntu/yowsup# yowsup-cli version
yowsup-cli v3.2.0
using:
  yowsup v3.2.3
  consonance v0.1.3-1
  dissononce v0.34.3
  python-axolotl v0.2.2
  cryptography v2.8
  protobuf v3.13.0
hossinasaadi commented 4 years ago

I deleted folder rm -rf /root/.config/yowsup/7964***** and try to use other phone number, registered is ok, but login is trouble:

[offline]:/L
I 2020-09-19 22:17:28,420 yowsup.layers.network.layer - Connecting to e11.whatsapp.net:443
I 2020-09-19 22:17:28,515 yowsup.axolotl.manager - Generating 812 prekeys, current max_prekey_id=0
I 2020-09-19 22:17:28,990 yowsup.axolotl.manager - Storing 812 prekeys
I 2020-09-19 22:17:31,882 yowsup.axolotl.manager - Loaded 812 unsent prekeys
general: Disconnected:
[offline]:
root@instance-20200701-2158:/home/ubuntu/yowsup# yowsup-cli version
yowsup-cli v3.2.0
using:
  yowsup v3.2.3
  consonance v0.1.3-1
  dissononce v0.34.3
  python-axolotl v0.2.2
  cryptography v2.8
  protobuf v3.13.0

try to install exact version from pip protobuf v4.0.0rc2 cryptography v3.1

if not fixed check this pull: https://github.com/tgalal/yowsup/pull/2924

mocart2 commented 4 years ago

Thanks, that pull is solved my problem!