Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication Failure #2980

Open
DannyWongSz opened this issue Apr 30, 2020 · 11 comments
Open

Authentication Failure #2980

DannyWongSz opened this issue Apr 30, 2020 · 11 comments
Assignees

Comments

@DannyWongSz
Copy link

After finally send the test message it stop working

D 2020-04-30 15:52:15,777 yowsup-cli - starting cmd
yowsup-cli v3.2.0
yowsup v3.2.3
consonance v0.1.3-1
dissononce v0.34.3
python-axolotl v0.2.2
cryptography v2.9.2
protobuf v3.11.3

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

D 2020-04-30 15:52:16,105 yowsup.stacks.yowstack - Initializing stack
D 2020-04-30 15:52:16,106 yowsup.stacks.yowstack - Constructed Network Layer
D 2020-04-30 15:52:16,106 yowsup.stacks.yowstack - Constructed Noise Segments La yer
D 2020-04-30 15:52:16,108 yowsup.stacks.yowstack - Constructed Noise Layer
D 2020-04-30 15:52:16,108 yowsup.stacks.yowstack - Constructed Coder Layer
D 2020-04-30 15:52:16,109 yowsup.stacks.yowstack - Constructed Logger Layer
D 2020-04-30 15:52:16,109 yowsup.stacks.yowstack - Constructed <yowsup.layers.ax olotl.layer_control.AxolotlControlLayer object at 0x7f9ef0473450>
D 2020-04-30 15:52:16,109 yowsup.stacks.yowstack - Constructed Axolotl Layer - < yowsup.layers.axolotl.layer_receive.AxolotlReceivelayer object at 0x7f9ef04c6f50 >
D 2020-04-30 15:52:16,109 yowsup.stacks.yowstack - Constructed Authentication La yer - Messages Layer - Receipt Layer - Ack Layer - Presence Layer - Ib Layer - I q Layer - notification Ib Layer - Contact Iq Layer - Chatstate Layer - call Laye r - Groups Iq Layer - Media Layer - Privacy Layer - Profiles Layer
D 2020-04-30 15:52:16,113 yowsup.stacks.yowstack - Constructed CLI Interface Lay er
D 2020-04-30 15:52:16,113 yowsup.stacks.yowstack - setProfile(YowProfile(profile _name=50689902693))
Yowsup Cli client

Type /help for available commands

D 2020-04-30 15:52:37,291 yowsup.layers.network.layer - Created asyncore dispatcher
I 2020-04-30 15:52:37,292 yowsup.layers.network.layer - Connecting to e12.whatsapp.net:443
D 2020-04-30 15:52:37,292 yowsup.layers.network.dispatcher.dispatcher_asyncore - connect(('e12.whatsapp.net', 443))
D 2020-04-30 15:52:37,374 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_connect
D 2020-04-30 15:52:37,374 yowsup.layers.network.layer - Connected
D 2020-04-30 15:52:37,374 yowsup.axolotl.factory - get_manager(profile_name=50689902693, username=50689902693)
D 2020-04-30 15:52:37,382 yowsup.axolotl.manager - Initialized AxolotlManager [username=50689902693, db=/root/.config/yowsup/50689902693/axolotl.db]
D 2020-04-30 15:52:37,382 yowsup.axolotl.manager - level_prekeys(force=False)
D 2020-04-30 15:52:37,445 yowsup.axolotl.manager - len(pending_prekeys) = 812
D 2020-04-30 15:52:37,445 yowsup.axolotl.manager - load_unsent_prekeys
D 2020-04-30 15:52:37,445 yowsup.layers.noise.layer - Received auth event
D 2020-04-30 15:52:37,446 yowsup.env.env - Env not set, setting it to android
D 2020-04-30 15:52:37,446 yowsup.env.env - Current env changed to android
D 2020-04-30 15:52:37,447 yowsup.layers.noise.layer - Performing handshake [username= 50689902693, passive=False]
D 2020-04-30 15:52:37,447 yowsup.layers.noise.layer - Starting handshake worker
D 2020-04-30 15:52:37,630 yowsup.profile.profile - write_config for 50689902693
D 2020-04-30 15:52:37,631 yowsup.common.tools - writeProfileData(profile_name=50689902693, name=config.json, val=[omitted])
D 2020-04-30 15:52:37,631 yowsup.common.tools - Writing /root/.config/yowsup/50689902693/config.json
D 2020-04-30 15:52:38,645 yowsup.layers.logger.layer - rx:

general: Login Failed, reason: 403
D 2020-04-30 15:52:38,645 yowsup.layers.network.dispatcher.dispatcher_asyncore - disconnect
D 2020-04-30 15:52:38,645 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_close
D 2020-04-30 15:52:38,646 yowsup.layers.network.layer - Disconnected
D 2020-04-30 15:52:38,734 yowsup.layers.axolotl.layer_control - Disconnected, reboot_connect? = False
general: Disconnected: Authentication Failure
offline:
offline:

@Lotykun
Copy link

Lotykun commented May 8, 2020

Same problem Here!.. any ideas?? Thanks

@Lotykun
Copy link

Lotykun commented May 9, 2020

I have register a new phone number succesfully but when I tried to connect to yowsup-cli or using yowsup-cli demos to send a single msg.. produces me the error reported in this issue. Moreover following the guide in order to create my own service based on the echo service. I have multiple incoherence in code.. I think is about versions in the dependencies.. HAve any a updated list of the versions in packages "six,consonance,protobuf..." that must fix with the last version of yowsup in python3?. And Have any an updated guida to create an echo service usign yowsup as package of pip.. Thnaks I would appreciate any help

@mape221
Copy link

mape221 commented May 11, 2020

I have register a new phone number succesfully but when I tried to connect to yowsup-cli or using yowsup-cli demos to send a single msg.. produces me the error reported in this issue. Moreover following the guide in order to create my own service based on the echo service. I have multiple incoherence in code.. I think is about versions in the dependencies.. HAve any a updated list of the versions in packages "six,consonance,protobuf..." that must fix with the last version of yowsup in python3?. And Have any an updated guida to create an echo service usign yowsup as package of pip.. Thnaks I would appreciate any help

@Lotykun Hi. Could you pass me the complete command with which you registered the number? It is that I am trying to register and I always get the old version error. I have used everything they recommend but it has not worked for me. Thank you.

@Lotykun
Copy link

Lotykun commented May 12, 2020

I have register a new phone number succesfully but when I tried to connect to yowsup-cli or using yowsup-cli demos to send a single msg.. produces me the error reported in this issue. Moreover following the guide in order to create my own service based on the echo service. I have multiple incoherence in code.. I think is about versions in the dependencies.. HAve any a updated list of the versions in packages "six,consonance,protobuf..." that must fix with the last version of yowsup in python3?. And Have any an updated guida to create an echo service usign yowsup as package of pip.. Thnaks I would appreciate any help

@Lotykun Hi. Could you pass me the complete command with which you registered the number? It is that I am trying to register and I always get the old version error. I have used everything they recommend but it has not worked for me. Thank you.

Hi, In order to get the registration number correct you have to update the MD5_CLASESS.
#2979.
1.- Edit the env_android.py with the values updated in the issue #2979
2.- install yowsup python3 setup.py install
3.- launch ./yowsup-cli registration --requestcode sms --config-phone 34XXXXXXXXX --config-cc XX --config-mcc XXX --config-mnc XX

@DannyWongSz
Copy link
Author

Try sending an email to whatsapp support and ask them to unlock your number, an explain what are you using for, because maybe its locked by the whatsapp servers. That was my problem and now its working perfectly.

@Lotykun
Copy link

Lotykun commented May 13, 2020

Hi @DannyWongSz. When you says it working perfectly, are you talking about the registration? or the hole service?? I can register a number but after that cant send any message. I have the same problem of everybody #2980, #2983. Even After upgrading to WA 3.0 (#2924 pull). Have you something different maybe packages versions??.

@mape221
Copy link

mape221 commented May 13, 2020

Thanks @Lotykun . You can register the phone, but the sending of messages and the echo server do not work. Has anyone currently had this problem and fixed it? There are 2 posts but no one has commented anything. @DannyWongSz Does it work for you?

@DannyWongSz
Copy link
Author

Hi @DannyWongSz. When you says it working perfectly, are you talking about the registration? or the hole service?? I can register a number but after that cant send any message. I have the same problem of everybody #2980, #2983. Even After upgrading to WA 3.0 (#2924 pull). Have you something different maybe packages versions??.

I mean the whole service is working fine.. I can send and receive messages.. But I was blocked by the whatsapp servers, you just have to try to register in a regular phone to see if your number is blocked for whatsapp and then contact them for unlock the number then, when you receive an email from WhatsApp try to register the number again in a regular phone, use it for at least two days sending messages and receiving answers... Then register with yowsup again and it should work..

@Lotykun
Copy link

Lotykun commented May 15, 2020

Hi People.. Finally I have the service working perfectly (without sending images). I have installed a fresh installation in my RPI. From my RPI I can send and receive messages using the number thath I have already registered in my laptop installation.

I am going to paste the diffrences between login from laptop (which not working) and loggin from rpi. Of course I am using same config.json.

The Most important difference i see.. is the logging mode.. in RPI is Performing handshake [username= 34XXXXXXXX, passive=False] but in the Laptop is [username= 34XXXXXXXX, passive=True]

Laptop:
Linux Mint 19.3 Tricia
yowsup-cli v3.2.0
yowsup v3.2.3
consonance v0.1.3-1
dissononce v0.34.3
python-axolotl v0.2.2
cryptography v2.6.1
protobuf v3.12.0rc2

D 2020-05-15 20:48:36,489 yowsup.layers.network.layer - Created asyncore dispatcher
I 2020-05-15 20:48:36,490 yowsup.layers.network.layer - Connecting to e14.whatsapp.net:443
D 2020-05-15 20:48:36,490 yowsup.layers.network.dispatcher.dispatcher_asyncore - connect(('e14.whatsapp.net', 443))
D 2020-05-15 20:48:36,591 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_connect
D 2020-05-15 20:48:36,591 yowsup.layers.network.layer - Connected
D 2020-05-15 20:48:36,591 yowsup.axolotl.factory - get_manager(profile_name=/home/jlotito/.config/yowsup/34XXXXXXX/, username=34XXXXXXX)
D 2020-05-15 20:48:36,593 yowsup.axolotl.manager - Initialized AxolotlManager [username=34XXXXXXX, db=/home/jlotito/.config/yowsup/34XXXXXXX/axolotl.db]
D 2020-05-15 20:48:36,593 yowsup.axolotl.manager - level_prekeys(force=False)
D 2020-05-15 20:48:36,599 yowsup.axolotl.manager - len(pending_prekeys) = 812
D 2020-05-15 20:48:36,600 yowsup.axolotl.manager - load_unsent_prekeys
I 2020-05-15 20:48:36,604 yowsup.axolotl.manager - Loaded 812 unsent prekeys
D 2020-05-15 20:48:36,605 yowsup.layers.noise.layer - Received auth event
D 2020-05-15 20:48:36,605 yowsup.env.env - Env not set, setting it to android
D 2020-05-15 20:48:36,605 yowsup.env.env - Current env changed to android
D 2020-05-15 20:48:36,606 yowsup.layers.noise.layer - Performing handshake [username= 34679440564, passive=True]
D 2020-05-15 20:48:36,606 yowsup.layers.noise.layer - Starting handshake worker
D 2020-05-15 20:48:36,897 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_close
D 2020-05-15 20:48:36,897 yowsup.layers.network.layer - Disconnected
D 2020-05-15 20:48:36,960 yowsup.layers.axolotl.layer_control - Disconnected, reboot_connect? = False
general: Disconnected:

RPI:
Raspbian GNU/Linux 10
yowsup-cli v3.2.0
yowsup v3.2.3
consonance v0.1.3-1
dissononce v0.34.3
python-axolotl v0.2.3
cryptography v2.6.1
protobuf v3.11.3

D 2020-05-15 19:51:16,373 yowsup.layers.network.layer - Created asyncore dispatcher
I 2020-05-15 19:51:16,377 yowsup.layers.network.layer - Connecting to e14.whatsapp.net:443
D 2020-05-15 19:51:16,381 yowsup.layers.network.dispatcher.dispatcher_asyncore - connect(('e14.whatsapp.net', 443))
D 2020-05-15 19:51:16,491 yowsup.layers.network.dispatcher.dispatcher_asyncore - handle_connect
D 2020-05-15 19:51:16,494 yowsup.layers.network.layer - Connected
D 2020-05-15 19:51:16,499 yowsup.axolotl.factory - get_manager(profile_name=/home/pi/.config/yowsup/34XXXXXXX/, username=34XXXXXXX)
D 2020-05-15 19:51:16,519 yowsup.axolotl.manager - Initialized AxolotlManager [username=34XXXXXXX, db=/home/pi/.config/yowsup/34XXXXXXX/axolotl.db]
D 2020-05-15 19:51:16,523 yowsup.axolotl.manager - level_prekeys(force=False)
D 2020-05-15 19:51:17,571 yowsup.axolotl.manager - len(pending_prekeys) = 812
D 2020-05-15 19:51:17,575 yowsup.axolotl.manager - load_unsent_prekeys
D 2020-05-15 19:51:17,583 yowsup.layers.noise.layer - Received auth event
D 2020-05-15 19:51:17,590 yowsup.env.env - Env not set, setting it to android
D 2020-05-15 19:51:17,593 yowsup.env.env - Current env changed to android
D 2020-05-15 19:51:17,599 yowsup.layers.noise.layer - Performing handshake [username= 34XXXXXXX, passive=False]
D 2020-05-15 19:51:17,604 yowsup.layers.noise.layer - Starting handshake worker
D 2020-05-15 19:51:18,013 yowsup.profile.profile - write_config for /home/pi/.config/yowsup/34XXXXXXX/
D 2020-05-15 19:51:18,021 yowsup.common.tools - writeProfileData(profile_name=/home/pi/.config/yowsup/34XXXXXXX/, name=config.json, val=[omitted])
D 2020-05-15 19:51:18,025 yowsup.common.tools - Writing /home/pi/.config/yowsup/34XXXXXXX/config.json
D 2020-05-15 19:51:18,042 yowsup.layers.logger.layer - rx:

D 2020-05-15 19:51:18,052 yowsup.layers.protocol_iq.layer - starting ping thread.
Auth: Logged in!

Hope this would help to find out the problem

@antoniovalenzuela
Copy link

Testing RPI3 (buster)

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

D 2020-05-31 13:38:29,109 yowsup.layers.noise.layer - Performing handshake [username= 569xxxxxxxx, passive=True]
.
.
D 2020-05-31 13:38:29,440 yowsup.layers.network.layer - Disconnected
D 2020-05-31 13:38:29,441 yowsup.layers.axolotl.layer_control - Disconnected, reboot_connect? = False

@antoniovalenzuela
Copy link

works
#2924 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants