yowsup-cli unable to authenticate
Hey i've tried to use the yowsup-cli tool to send a message but apparently the authentication had failed. i've done exactly whats written in the documentation - registered, got the code via sms. update the config file with the exact IMEI, phone number, password base64 and country code. using the debugging mode switch i've got this output - am i doing something wrong or did whatsup updated something in the challenge process which broke this code ?
Thanks :)
debug output -
YowsupConnectionManager: >>>>>>>> AUTH CALLED
BinTreeNodeReader: Reader init
YowsupAuth: Connecting to c2.whatsapp.net
WAuth: Yowsup WAUTH-1 INIT
WAuth: Starting stream
WAuth: Sending Features
BinTreeNodeWriter: Outgoing
BinTreeNodeWriter:
stream:features
<receipt_acks>
</receipt_acks>
<w:profile:picture type="all">
/w:profile:picture
<w:profile:picture type="group">
/w:profile:picture
WAuth: Sending Auth
BinTreeNodeWriter: Outgoing
BinTreeNodeWriter:
WAuth: Read stream start
WAuth: Read features and challenge
BinTreeNodeReader: Incoming
BinTreeNodeReader:
stream:features
<receipt_acks>
</receipt_acks>
<w:profile:picture type="all">
/w:profile:picture
/stream:features
WAuth: GOT FEATURES !!!!
BinTreeNodeReader: Incoming
BinTreeNodeReader:
WAuth: GOT CHALLENGE !!!!
WAuth: Sending Response
BinTreeNodeWriter: Outgoing
BinTreeNodeWriter:
WAuth: Read success
BinTreeNodeReader: Incoming
BinTreeNodeReader:
WAuth: Login Status: failure YowsupAuth: Authentication failed!! Auth Failed!
OK Post ur command line and ur config file
On Jul 14, 2014 6:23 PM, k1p0d [email protected] wrote: Hey i've tried to use the yowsup-cli tool to send a message but apparently the authentication had failed. i've done exactly whats written in the documentation - registered, got the code via sms. update the config file with the exact IMEI, phone number, password base64 and country code. using the debugging mode switch i've got this output - am i doing something wrong or did whatsup updated something in the challenge process which broke this code ?
debug output -
YowsupConnectionManager: >>>>>>>> AUTH CALLED
BinTreeNodeReader: Reader init
YowsupAuth: Connecting to c2.whatsapp.net
WAuth: Yowsup WAUTH-1 INIT
WAuth: Starting stream
WAuth: Sending Features
BinTreeNodeWriter: Outgoing
BinTreeNodeWriter:
stream:features
<receipt_acks>
</receipt_acks>
<w:profile:picture type="all">
/w:profile:picture
<w:profile:picture type="group">
/w:profile:picture
WAuth: Sending Auth
BinTreeNodeWriter: Outgoing
BinTreeNodeWriter:
WAuth: Read stream start WAuth: Read features and challenge BinTreeNodeReader: Incoming BinTreeNodeReader: stream:features <receipt_acks> </receipt_acks> <w:profile:picture type="all"> /w:profile:picture /stream:features
WAuth: GOT FEATURES !!!!
BinTreeNodeReader: Incoming
BinTreeNodeReader:
WAuth: GOT CHALLENGE !!!!
WAuth: Sending Response
BinTreeNodeWriter: Outgoing
BinTreeNodeWriter:
WAuth: Read success
BinTreeNodeReader: Incoming
BinTreeNodeReader:
WAuth: Login Status: failure YowsupAuth: Authentication failed!! Auth Failed!
Reply to this email directly or view it on GitHub: https://github.com/tgalal/yowsup/issues/303
seems you didn't get real password and used sms code as password
i dont think posting my config file is a good idea.. and as i said i used the base64 returned after i finished the second part of the challenge as password.. as written in the documentation.
does this code works for you guys ? cause if so i'll just redo the whole process. and see where i got it wrong.
password = "" #obtained during registration
password = base64.b64decode(bytes(password.encode('utf-8')))
Maybe your account is blocked
Hey guys I've figured the problem; its really a misleading part of the wiki documentation which states the following -
phone=00123456789 #replace with your phone number with two extra leading 00 (zeros). Your number is supposed to be 123456789 really
when the actual config example says
phone: Your full phone number including country code, without '+' or '00'
anyhow i made the correction :)
Thanks!