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

updated to android and whatsapp 2.12.440 #1336

Merged
merged 3 commits into from
Mar 31, 2016

Conversation

jlguardi
Copy link
Collaborator

@jlguardi jlguardi commented Mar 5, 2016

Fix #1335
Replaced Android env_file with 2.12.440 information.
Included some params during code request.
Forced android env in http/registration protocols

…time isn't a good option. Reverted to S40 for default runtime env but using Android for registration.
@abigoroth
Copy link

I just cloned this repo and replace all three files which @jlguardi did. But still get the same error :

Yakobs-MacBook-Pro:yowsup akob$ yowsup-cli registration --requestcode sms --phone 60XXXXXXXXXX --cc 60 --mcc 502 --mnc 16
INFO:yowsup.common.http.warequest:{"status":"fail","reason":"old_version"}

status: fail
reason: old_version

@jlguardi
Copy link
Collaborator Author

@abigoroth really?? I've registered a line 2 hours ago and worked.

Add -d flag and post logs.

@jlguardi jlguardi mentioned this pull request Mar 20, 2016
@abigoroth
Copy link

Yakobs-MacBook-Pro:yowsup akob$ yowsup-cli registration --requestcode sms --phone 60XXXXXXXXXX --cc 601 --mcc 502 --mnc 16
INFO:yowsup.common.http.warequest:{"status":"fail","reason":"old_version"}

status: fail
reason: old_version
Yakobs-MacBook-Pro:yowsup akob$ yowsup-cli registration --requestcode sms --phone 60XXXXXXXXXX --cc 601 --mcc 502 --mnc 16 -d
DEBUG:yowsup.common.http.warequest:{'Accept': 'text/json', 'User-Agent': 'WhatsApp/2.13.21 S40Version/14.26 Device/Nokia302'}
DEBUG:yowsup.common.http.warequest:cc=601&in=XXXXXXXXXX&lc=GB&lg=en&sim_mcc=502&sim_mnc=016&method=sms&token=fc5cf16b1e498d49869aa1cb93ae7ecd&id=%B0I%989%5E%ED%F8%9CF7%EAc%B1%DD%F6K%8C%B3%8B%CB
DEBUG:yowsup.common.http.warequest:Opening connection to v.whatsapp.net
DEBUG:yowsup.common.http.warequest:Sending GET request to /v2/code?cc=601&in=XXXXXXXXXX&lc=GB&lg=en&sim_mcc=502&sim_mnc=016&method=sms&token=fc5cf16b1e498d49869aa1cb93ae7ecd&id=%B0I%989%5E%ED%F8%9CF7%EAc%B1%DD%F6K%8C%B3%8B%CB
INFO:yowsup.common.http.warequest:{"status":"fail","reason":"old_version"}

@jlguardi
Copy link
Collaborator Author

@abigoroth You aren't using #1336 due to some parameters are missing in the http GET. Try to download my branch or apply again the patch.

@abigoroth
Copy link

sorry noob here. How can I download #1336 ? I cannot find any download link or .git to clone.

@jlguardi
Copy link
Collaborator Author

@abigoroth
Copy link

still having the same problem, on MAC OS El Capitan,

Yakobs-MacBook-Pro:yowsup akob$ yowsup-cli registration --requestcode sms --phone 60XXXXXXXXX --cc 60 --mcc 502 --mnc 16 -d
DEBUG:yowsup.common.http.warequest:{'Accept': 'text/json', 'User-Agent': 'WhatsApp/2.13.21 S40Version/14.26 Device/Nokia302'}
DEBUG:yowsup.common.http.warequest:cc=60&in=XXXXXXXXX&lc=GB&lg=en&sim_mcc=502&sim_mnc=016&method=sms&token=d55c8a2c16b9727644a184a196cccd7f&id=z%A7%F2vv%D1%88%40%D4%D0%0D%0A%87%E1%DE%81%90%B3G%B6
DEBUG:yowsup.common.http.warequest:Opening connection to v.whatsapp.net
DEBUG:yowsup.common.http.warequest:Sending GET request to /v2/code?cc=60&in=XXXXXXXXX&lc=GB&lg=en&sim_mcc=502&sim_mnc=016&method=sms&token=d55c8a2c16b9727644a184a196cccd7f&id=z%A7%F2vv%D1%88%40%D4%D0%0D%0A%87%E1%DE%81%90%B3G%B6
INFO:yowsup.common.http.warequest:{"status":"fail","reason":"old_version"}

status: fail
reason: old_version

edited:
I just clone the link you gave above. Is that the right way to do it ?

@jlguardi
Copy link
Collaborator Author

@abigoroth y y still using master code. Probably you've installed yowsup and your PYTHONPATH is undefined.
Download my branch and unzip it. Go in. Export PYTHONPATH=$PWD and run ./yowsup-cli...

@abigoroth
Copy link

thanks @jlquardi , it worked. I need to rember to export PYTHONPATH=$PWD to
each another python projects that I cloned/download right?

On Mon, Mar 21, 2016 at 6:54 PM, jlguardi notifications@github.com wrote:

@abigoroth https://github.com/abigoroth y y still using master code.
Probably you've installed yowsup and your PYTHONPATH is undefined.
Download my branch and unzip it. Go in. Export PYTHONPATH=$PWD and run
./yowsup-cli...


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#1336 (comment)

@abigoroth
Copy link

now having trouble with this :

Error: You must specify a configuration method .

Another thing, where should I get the password? :
--login phone:b64password

On Mon, Mar 21, 2016 at 7:38 PM, yakob ubaid yakob.ubaidi@gmail.com wrote:

thanks @jlquardi , it worked. I need to rember to export PYTHONPATH=$PWD
to each another python projects that I cloned/download right?

On Mon, Mar 21, 2016 at 6:54 PM, jlguardi notifications@github.com
wrote:

@abigoroth https://github.com/abigoroth y y still using master code.
Probably you've installed yowsup and your PYTHONPATH is undefined.
Download my branch and unzip it. Go in. Export PYTHONPATH=$PWD and run
./yowsup-cli...


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#1336 (comment)

@jlguardi
Copy link
Collaborator Author

./yowsup-cli registration -C cc -p ccphone -r sms -d
You get sms code
./yowsup-cli registration -C cc -p ccphone -R code -d
Now you get password
./yowsup-cli demos -l ccphone:password -y -d

@abigoroth
Copy link

thanks @jlguardi ! It worked!

Now I need this to interfaced with my Ruby on Rails application.

Any idea ?

On Mon, Mar 21, 2016 at 8:06 PM, jlguardi notifications@github.com wrote:

./yowsup-cli registration -C cc -p ccphone -r sms -d
You get sms code
./yowsup-cli registration -C cc -p ccphone -R code -d
Now you get password
./yowsup-cli registration -l ccphone:password -y -d


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#1336 (comment)

@Mirdrack
Copy link

This totally works for me i update the files, reinstall and register my number
@abigoroth did you try to reinstall?

@Shakthi88
Copy link

@jlguardi
i'm getting "registration: error: unrecognized arguments: -l XXXX:pwddd -y" while trying the 3rd step in registration ./yowsup-cli registration -l ccphone:password -y -d
any suggestion appreciated, Thanks

@jlguardi
Copy link
Collaborator Author

@Shakthi88 so sorry, I've a mistake in my comment (fixed now). When I said "./yowsup-cli registration -l ccphone:password -y -d" I meant "./yowsup-cli demos -l ccphone:password -y -d".

@Shakthi88
Copy link

@jlguardi , great thanks a lot .... i'm able to login now

@abigoroth
Copy link

This morning I realized that I cannot send message. I don't understand why I get this error below. :

DEBUG:yowsup.layers.logger.layer:rx:



DEBUG:yowsup.layers.network.layer:Disconnected, reason: Authentication Failure
Authentication Error: not-authorized

@acondoriml
Copy link

@jlguardi

Hi,

I cloned this repo and Install yowsup again and It's working, I haven't the problem the "old_version"
So, I send a new registration and all was fine:

INFO:yowsup.common.http.warequest:{"status":"ok","login":"5XXXXXXX0","type":"existing","pw":"XXXXXXXXXXXXX","expiration":4444444444.0,"kind":"free","price":"US$0.99","cost":"0.99","currency":"USD","price_expiration":1461802275}

status: ok
kind: free
..........
........

I changed all conf files with the new password and re-start my app but I'm getting a new error:

WARNING:yowsup.stacks.yowstack:Implicit declaration of parallel layers in a tuple is deprecated, pass a YowParallelLayer instead
2016-03-25 14:29:55,944 WARNING Implicit declaration of parallel layers in a tuple is deprecated, pass a YowParallelLayer instead
Traceback (most recent call last):
File "./run.py", line 50, in
stack.loop() #this is the program main loop`
File "build/bdist.linux-x86_64/egg/yowsup/stacks/yowstack.py", line 195, in loop
File "/usr/lib/python2.7/asyncore.py", line 216, in loop
poll_fun(timeout, map)
File "/usr/lib/python2.7/asyncore.py", line 156, in poll
read(obj)
File "/usr/lib/python2.7/asyncore.py", line 87, in read
obj.handle_error()
File "/usr/lib/python2.7/asyncore.py", line 83, in read
obj.handle_read_event()
File "/usr/lib/python2.7/asyncore.py", line 444, in handle_read_event
self.handle_read()
File "build/bdist.linux-x86_64/egg/yowsup/layers/network/layer.py", line 86, in handle_read
try:
File "build/bdist.linux-x86_64/egg/yowsup/layers/network/layer.py", line 94, in receive
dataClima.append(diccionario["main"])
File "build/bdist.linux-x86_64/egg/yowsup/layers/init.py", line 59, in toUpper
File "build/bdist.linux-x86_64/egg/yowsup/layers/stanzaregulator/layer.py", line 28, in receive
logger.setLevel(logging.INFO) # Setea el level de logueo
File "build/bdist.linux-x86_64/egg/yowsup/layers/stanzaregulator/layer.py", line 48, in processReceived
File "build/bdist.linux-x86_64/egg/yowsup/layers/init.py", line 59, in toUpper
File "build/bdist.linux-x86_64/egg/yowsup/layers/auth/layer_crypt.py", line 63, in receive
File "build/bdist.linux-x86_64/egg/yowsup/layers/init.py", line 59, in toUpper
File "build/bdist.linux-x86_64/egg/yowsup/layers/coder/layer.py", line 35, in receive
handler.setFormatter(formatter) # setea el formatter al handler
File "build/bdist.linux-x86_64/egg/yowsup/layers/init.py", line 59, in toUpper
File "build/bdist.linux-x86_64/egg/yowsup/layers/logger/layer.py", line 14, in receive
from yowsup.layers.protocol_messages.protocolentities import TextMessageProtocolEntity
File "build/bdist.linux-x86_64/egg/yowsup/layers/init.py", line 59, in toUpper
File "build/bdist.linux-x86_64/egg/yowsup/layers/axolotl/layer.py", line 126, in receive

File "build/bdist.linux-x86_64/egg/yowsup/layers/init.py", line 59, in toUpper
File "build/bdist.linux-x86_64/egg/yowsup/layers/init.py", line 169, in receive
File "build/bdist.linux-x86_64/egg/yowsup/layers/init.py", line 105, in receive
File "build/bdist.linux-x86_64/egg/yowsup/layers/auth/layer_authentication.py", line 77, in handleFailure
yowsup.layers.auth.autherror.AuthError: not-authorized

Any solution or suggestion?

Ty a lot!

@jlguardi
Copy link
Collaborator Author

@acondromi clone my master branch instead of this.

@abigoroth
Copy link

I have the same issue like @acondromi :

Auth Error, reason not-authorized

On Sat, Mar 26, 2016 at 3:52 AM, jlguardi notifications@github.com wrote:

@acondromi clone my master branch instead of this.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#1336 (comment)

@Mirdrack
Copy link

I apply the changes of this pull to my project and that works to register
It works a few days but now I'm getting the Auth Error, reason not-authorized but I don't know if I should talking about this on this report or open a new Issue
But if somebody know what is happening it will be good to know

Thanks

@ashutoshpw
Copy link

I am using the latest version but still i am getting error reason as old_version

@tgalal tgalal merged commit fbacee5 into tgalal:master Mar 31, 2016
@jlguardi jlguardi deleted the Android_2.12.440 branch April 9, 2016 09:07
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

Successfully merging this pull request may close these issues.

None yet

10 participants