tgalal / yowsup

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

Unable to do registration #1335

Closed gauravdave01 closed 8 years ago

gauravdave01 commented 8 years ago

My yowsup version:

yowsup-cli v2.0.13 Using yowsup v2.4.48

While trying registration, gives status: fail & reason: old_version

Here, is my command and stack trace (while doing --debug):

python yowsup-cli registration --config mydetails --requestcode sms --debug 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=91&in=XXXXXXXXXX&lc=GB&lg=en&sim_mcc=000&sim_mnc=000&method=sms&token=a93834b0cf1b70077b89118833dc6e0a&id=%0C%3A%14%D3%DB%B4v%18r%E9%FEaW%5Bb%0D%C7%2B%AD%2F DEBUG:yowsup.common.http.warequest:Opening connection to v.whatsapp.net DEBUG:yowsup.common.http.warequest:Sending GET request to /v2/code?cc=91&in=XXXXXXXXXX&lc=GB&lg=en&sim_mcc=000&sim_mnc=000&method=sms&token=a93834b0cf1b70077b89118833dc6e0a&id=%0C%3A%14%D3%DB%B4v%18r%E9%FEaW%5Bb%0D%C7%2B%AD%2F INFO:yowsup.common.http.warequest:{"status":"fail","reason":"old_version"}

status: fail reason: old_version

I have read older post, but they somehow didn't solved my problem, as I'm already using latest code.

PS: WhatsApp has released a newer version, few days back, is it because of that registration is not working?

c-r-a-z-y commented 8 years ago

Or if i try the ptevious Nummer

root@cubietruck:/opt/yowsup-master# yowsup-cli registration -r voice -p 4963016171814 -C 49 -d DEBUG:yowsup.common.http.warequest:{'Accept': 'text/json', 'User-Agent': 'WhatsApp/2.12.440 Android/4.3 Device/GalaxyS3'} DEBUG:yowsup.common.http.warequest:cc=49&in=63016171814&id=%A9%D0%D2%E0%87%24%F4%15wm%C0%E1%A6U%DE4%ED%27%24N&lg=en&lc=GB&token=79c66fac292ef94ba5f482da42516cff DEBUG:yowsup.common.http.warequest:Opening connection to v.whatsapp.net DEBUG:yowsup.common.http.warequest:Sending GET request to /v2/exist?cc=49&in=63016171814&id=%A9%D0%D2%E0%87%24%F4%15wm%C0%E1%A6U%DE4%ED%27%24N&lg=en&lc=GB&token=79c66fac292ef94ba5f482da42516cff INFO:yowsup.common.http.warequest:{"status":"fail","reason":"incorrect","sms_length":6,"voice_length":6,"sms_wait":0,"voice_wait":0}

DEBUG:yowsup.common.http.warequest:{'Accept': 'text/json', 'User-Agent': 'WhatsApp/2.12.440 Android/4.3 Device/GalaxyS3'} DEBUG:yowsup.common.http.warequest:cc=49&in=63016171814&lc=GB&lg=en&sim_mcc=000&sim_mnc=000&mcc=000&mnc=000&method=voice&mistyped=6&network_radio_type=1&simnum=1&s=&copiedrc=1&hasinrc=1&rcmatch=1&pid=3982&rchash=8ddcb2561dfb26c5f32bd2378d410ea748819d33ee7923b3c72c8373cc1f5eb0&anhash=%1Ak5l%BBi%C0%85%DB8%88%CA%D4G+%A0%A3%D3%92%D5&extexist=1&extstate=1&token=L%2FKL23cowhVie4hmVm6azooSPpU%3D&id=%06%F2d%BE%85%5C%DEYyx%DE%E3%87%CF%27%FA%8BPH9 DEBUG:yowsup.common.http.warequest:Opening connection to v.whatsapp.net DEBUG:yowsup.common.http.warequest:Sending GET request to /v2/code?cc=49&in=63016171814&lc=GB&lg=en&sim_mcc=000&sim_mnc=000&mcc=000&mnc=000&method=voice&mistyped=6&network_radio_type=1&simnum=1&s=&copiedrc=1&hasinrc=1&rcmatch=1&pid=3982&rchash=8ddcb2561dfb26c5f32bd2378d410ea748819d33ee7923b3c72c8373cc1f5eb0&anhash=%1Ak5l%BBi%C0%85%DB8%88%CA%D4G+%A0%A3%D3%92%D5&extexist=1&extstate=1&token=L%2FKL23cowhVie4hmVm6azooSPpU%3D&id=%06%F2d%BE%85%5C%DEYyx%DE%E3%87%CF%27%FA%8BPH9 INFO:yowsup.common.http.warequest:{"status":"sent","length":6,"method":"voice","retry_after":82805,"sms_wait":65,"voice_wait":82805}

status: sent retry_after: 82805 length: 6 method: voice root@cubietruck:/opt/yowsup-master#

But nothing happens ...

sgc-fireball commented 8 years ago

same here

./yowsup-cli demos -l "......:............." --send ........ test
Authentication Error: not-authorized
yowsup-cli registration -m .... -n ..... -p ........ -C ..... -r sms
INFO:yowsup.common.http.warequest:{"status":"fail","reason":"old_version"}
INFO:yowsup.common.http.warequest:{"status":"fail","reason":"old_version"}
status: fail
reason: old_version

BUT with https://github.com/jlguardi/yowsup/tree/Android_2.12.440 it works 4 me!

c-r-a-z-y commented 8 years ago

The Problem of the old version yes but as you can see in the upper part :

INFO:yowsup.common.http.warequest:{"status":"fail","reason":"incorrect","sms_length":6,"voice_length":6,"sms_wait":0,"voice_wait":0}

The request seems to be somehow Not working

jlguardi commented 8 years ago

@c-r-a-z-y You are trying to register a landline. Just mobile lines are supported by whatsapp

c-r-a-z-y commented 8 years ago

I was using my ländliche for over a year now with whatsapp, and IT was working well since end of last week

c-r-a-z-y commented 8 years ago

I was using my landline for over a year now with whatsapp, and IT was working well since end of last week

Joel-suffer-for-YOWSUP commented 8 years ago

Login Failed, reason: not-authorized

@jlguardi save me :(

I'm a noob register my phone number today . I could not send messages...this is for a school work please help, thanks for your attention.

pi@raspberrypi:~/yowsup $ yowsup-cli demos --yowsup --config config

Type /help for available commands

general: Login Failed, reason: not-authorized Auth Error, reason not-authorized pi@raspberrypi:~/yowsup $

jlguardi commented 8 years ago

@Joel-suffer-for-YOWSUP which version are yo using. Where have you gotten it?

Joel-suffer-for-YOWSUP commented 8 years ago

@jlguardi Thanks for your answer . I clone From this address

git clone git://github.com/tgalal/yowsup.git

I could not register with the library, use a software called WART for registration

https://github.com/mgp25/WART/blob/master/WART.exe

jlguardi commented 8 years ago

@Joel-suffer-for-YOWSUP clone from jlguardi/yowsup.git this master is updated.

Joel-suffer-for-YOWSUP commented 8 years ago

@jlguardi thanks I worked to perfection . your excellent work. where I can contribute? $$$ so that you continue with your excellent work

jlguardi commented 8 years ago

@Joel-suffer-for-YOWSUP you can donate to @tgalal who implemented all this code. You have a link in the main page of his project and also my fork.

borigoto commented 8 years ago

Hi! First, sorry my english is bad...

I have same problem, and, to solve i do this:

git clone https://github.com/jlguardi/yowsup.git

cd yowsup

python3 setup.py install

Work fine! and, i test this at two machines.

[]'s and Thanks for all!

Bobb69 commented 8 years ago

@jlguardi Help! I'm a noob when it comes to linux, so i tried to following all your instructions. I clone from jlguardi/yowsup.git and I can register, but I cannot log in, I get the error: ImportError no module named axolotadress

HELP ASAP please!

jlguardi commented 8 years ago

Read ‎https://github.com/jlguardi/yowsup/issues/6#issuecomment-202446917 De: Bobb69 Enviado: lunes, 28 de marzo de 2016 17:56 Para: tgalal/yowsup Responder a: tgalal/yowsup CC: jlguardi Asunto: Re: [yowsup] Unable to do registration (#1335)

@jlguardi Help! I'm a noob when it comes to linux, so i tried to following all your instructions. I clone from jlguardi/yowsup.git and I can register, but I cannot log in, I get the error: ImportError no module named axolotadress

HELP ASAP please!


You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/tgalal/yowsup/issues/1335#issuecomment-202455040

Bobb69 commented 8 years ago

@jlguardi you're the best man! Thanks!

Bobb69 commented 8 years ago

@jlguardi you've been so much help...

Can you please let me know how I can do this:

I want to create a script which i can call from another script. Lets call the first script send.py which I will call from another script.

and i want send.py to execute the following code which i can use to send the message when typed in the terminal: sudo yowsup/yowsup-cli demo -c config -s 27XXXXXXX "Message from Pi"

then the script must execute and exit back to the script which called the script send.py

OR if that's not going to work

how can I use the code sudo yowsup/yowsup-cli demo -c config -s 27XXXXXXX "Message from Pi" in a script? How can i type the script that does that? Please help by showing me an example of a script which does this or point me to a website or thread where this is done.

Thank you in advance, and keep up the good work.

fototeddy commented 8 years ago

well i now tried this repo in different branches and also the master from jlguardi and his devel but all i get is this: python yowsup-cli registration --requestcode voice --phone 49xxx29566061 --cc 49 INFO:yowsup.common.http.warequest:{"status":"fail","reason":"old_version"}

i'm trying to register a landline number but as some here said landline should work

so what can i try to get this work?

yemel commented 8 years ago

Same here, @jlguardi do you know if this issue is back?

./yowsup-cli registration -r sms -C 54 -p 54911XXXXXX -m 722 -n 310 --debug
DEBUG:yowsup.env.env:Env not set, setting it to android
DEBUG:yowsup.env.env:Current env changed to android
DEBUG:yowsup.common.http.warequest:{'Accept': 'text/json', 'User-Agent': 'WhatsApp/2.12.440 Android/4.3 Device/GalaxyS3'}
DEBUG:yowsup.common.http.warequest:cc=54&in=91164115258&lc=GB&lg=en&sim_mcc=722&sim_mnc=310&mcc=722&mnc=310&method=sms&mistyped=6&network_radio_type=1&simnum=1&s=&copiedrc=1&hasinrc=1&rcmatch=1&pid=4984&rchash=ac99cec38484c84dfbef4fde26f621ce1338fc41ea0ce05432b630e8a54703ca&anhash=6r%FD%DE%8B5%84.%AD%A6%29%28%22XT%08%9E%D9%3C%AB&extexist=1&extstate=1&token=thQ0vj42aNPGC65Hpq0daMbD5Ds%3D&id=%A7%B5%CE%1Dt7k%86-%FF%9A%89%23V%8D%3B%C8%FF%D3%AB
DEBUG:yowsup.common.http.warequest:Opening connection to v.whatsapp.net
DEBUG:yowsup.common.http.warequest:Sending GET request to /v2/code?cc=54&in=91164115258&lc=GB&lg=en&sim_mcc=722&sim_mnc=310&mcc=722&mnc=310&method=sms&mistyped=6&network_radio_type=1&simnum=1&s=&copiedrc=1&hasinrc=1&rcmatch=1&pid=4984&rchash=ac99cec38484c84dfbef4fde26f621ce1338fc41ea0ce05432b630e8a54703ca&anhash=6r%FD%DE%8B5%84.%AD%A6%29%28%22XT%08%9E%D9%3C%AB&extexist=1&extstate=1&token=thQ0vj42aNPGC65Hpq0daMbD5Ds%3D&id=%A7%B5%CE%1Dt7k%86-%FF%9A%89%23V%8D%3B%C8%FF%D3%AB
INFO:yowsup.common.http.warequest:{"status":"fail","reason":"old_version"}

status: fail
reason: old_version
jadariman commented 8 years ago

Hello

I have the same problem any ideas for resolutions..

/yowsup$ sudo yowsup-cli registration -c phone.config -r sms yowsup-cli v2.0.15 yowsup v2.4.102

Copyright (c) 2012-2016 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

INFO:yowsup.common.http.warequest:{"status":"fail","reason":"incorrect","sms_length":6,"voice_length":6,"sms_wait":0,"voice_wait":0}

INFO:yowsup.common.http.warequest:{"status":"fail","reason":"old_version"}

status: fail reason: old_version

jlguardi commented 8 years ago

See #1536

Gopalasa commented 8 years ago

Traceback (most recent call last): File "./yowsup-cli", line 324, in if not parser.process(): File "./yowsup-cli", line 159, in process self.handleRequestCode(self.args["requestcode"], config) File "./yowsup-cli", line 168, in handleRequestCode from yowsup.registration import WACodeRequest File "/home/pi/yowsup/yowsup/registration/init.py", line 1, in from .coderequest import WACodeRequest File "/home/pi/yowsup/yowsup/registration/coderequest.py", line 4, in from yowsup.common.tools import StorageTools, WATools File "/home/pi/yowsup/yowsup/common/tools.py", line 11, in from pkg_resources import resource_string File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2888, in add_activation_listener(lambda dist: dist.activate()) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 758, in subscribe callback(dist) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2888, in add_activation_listener(lambda dist: dist.activate()) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2425, in activate for pkg in self._get_metadata('namespace_packages.txt'): File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2415, in _get_metadata for line in self.get_metadata_lines(name): File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1413, in get_metadata_lines return yield_lines(self.get_metadata(name)) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1405, in get_metadata return self._get(self._fn(self.egg_info, name)) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1514, in _get with open(path, 'rb') as stream: IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/protobuf-3.0.0b2.post2-py2.7.egg/EGG-INFO/namespace_packages.txt'

can help me on this problem.. I am very new to this and have almost no idea to solve this..

jlguardi commented 8 years ago
                                                                                  sudo chmod 644‎ /usr/local/lib/python2.7/dist-packages/*
Gopalasa commented 8 years ago

@jlguardi sudo chmod 644/usr/local/lib/python2.7/dist-pacages/ chmod: missing operand after ‘644/usr/local/lib/python2.7/dist-pacages/’ Try 'chmod --help' for more information.

i have tried sudo chmod 644‎ /usr/local/lib/python2.7/dist-packages/*, but then is still cant send the message. I am able get the six digit code and successfully registered. Please help

jlguardi commented 8 years ago

If you have registered, your error is different. We made a step forward! Post trace/debug logs(-d flag) to see the new issue.

Gopalasa commented 8 years ago

pi@raspberrypi:~/yowsup $ python yowsup-cli demos -c config -s 60173212431 "message" -d yowsup-cli v2.0.15 yowsup v2.4.102

Copyright (c) 2012-2016 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

Traceback (most recent call last): File "yowsup-cli", line 368, in if not parser.process(): File "yowsup-cli", line 272, in process self.startSendClient() File "yowsup-cli", line 323, in startSendClient not self.args["unmoxie"]) File "/home/pi/yowsup/yowsup/demos/sendclient/stack.py", line 20, in init .pushDefaultLayers(encryptionEnabled)\ File "/home/pi/yowsup/yowsup/stacks/yowstack.py", line 51, in pushDefaultLayers defaultLayers = YowStackBuilder.getDefaultLayers(axolotl) File "/home/pi/yowsup/yowsup/stacks/yowstack.py", line 73, in getDefaultLayers from yowsup.layers.axolotl import YowAxolotlLayer File "/home/pi/yowsup/yowsup/layers/axolotl/init.py", line 1, in from .layer import YowAxolotlLayer File "/home/pi/yowsup/yowsup/layers/axolotl/layer.py", line 2, in from .protocolentities import SetKeysIqProtocolEntity File "/home/pi/yowsup/yowsup/layers/axolotl/protocolentities/init.py", line 3, in from .iq_keys_get_result import ResultGetKeysIqProtocolEntity File "/home/pi/yowsup/yowsup/layers/axolotl/protocolentities/iq_keys_get_result.py", line 5, in from axolotl.identitykey import IdentityKey File "/usr/local/lib/python2.7/dist-packages/python_axolotl-0.1.34-py2.7.egg/axolotl/identitykey.py", line 3, in File "/usr/local/lib/python2.7/dist-packages/python_axolotl-0.1.34-py2.7.egg/axolotl/ecc/curve.py", line 8, in File "build/bdist.linux-armv7l/egg/axolotl_curve25519.py", line 7, in File "build/bdist.linux-armv7l/egg/axolotl_curve25519.py", line 3, in bootstrap File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2888, in add_activation_listener(lambda dist: dist.activate()) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 758, in subscribe callback(dist) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2888, in add_activation_listener(lambda dist: dist.activate()) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2425, in activate for pkg in self._get_metadata('namespace_packages.txt'): File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2415, in _get_metadata for line in self.get_metadata_lines(name): File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1413, in get_metadata_lines return yield_lines(self.get_metadata(name)) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1405, in get_metadata return self._get(self._fn(self.egg_info, name)) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1514, in _get with open(path, 'rb') as stream: IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/protobuf-3.0.0b2.post2-py2.7.egg/EGG-INFO/namespace_packages.txt'

jlguardi commented 8 years ago

Check rights for '/usr/local/lib/python2.7/dist-packages/protobuf-3.0.0b2.post2-py2.7.egg'

ls -la /usr/local/lib/python2.7/dist-packages/protobuf-3.0.0b2.post2-py2.7.egg

Gopalasa commented 8 years ago

ls -la /usr/local/lib/python2.7/dist-packages/protobuf-3.0.0b2.post2-py2.7.egg total 16 drwxr-sr-x 4 root staff 4096 Apr 24 17:17 . drwxrwsr-x 4 root staff 4096 Apr 24 17:22 .. drwxr-sr-x 2 root staff 4096 Apr 24 17:17 EGG-INFO drwxr-sr-x 3 root staff 4096 Apr 24 17:17 google What is that mean? Sorry. All this are new to me. Hope you can help me out.

Gopalasa commented 8 years ago

@jlguardi Thanks for the help.... i am able to send the message by adding sudo.. sudo yowsup-cli -c config -s 60xxxxxxxxxxxx "message" but when i try again after an hour, i get Authentication Error: not-authorized. why?

jlguardi commented 8 years ago

Probably you have been banned by wa. This is a usual issue last days. Try to register again but... you will need to wait for 40 days.

SudhagarR commented 8 years ago

Need help - All WART - Yowsup - Giving same error " no_route " , is Whatsapp updated anything from thr side ?

INFO:yowsup.common.http.warequest:{"status":"fail","reason":"no_routes","retry_after":3600,"sms_wait":3600,"voice_wait":3600}

status: fail retry_after: 3600 reason: no_routes

jlguardi commented 8 years ago

Don't use servers. Try from your home (most of servers are identified by wa. Try also with android env.

ragowthaman commented 8 years ago

I was able to use yowsup-cli successfully couple weeks ago, but it now gives error:

yowsup-cli registration --cc 91 --phone 91xxxxxxxxxx --requestcode sms --mcc 404

INFO:yowsup.common.http.warequest:{"status":"fail","reason":"old_version"} status: fail reason: old_version

I also tried new installation to see if something got corrupted. Nope. Previously registered numbers works just fine.

Any help would be very much appreciated.

jlguardi commented 8 years ago

See #1716 and #1725

ragowthaman commented 8 years ago

Thanks @jlguardi for pointing me to this. #1725 resolved the issue for me. I really appreciate the help.

elongo commented 7 years ago

Hi are there any updates about how to solve this issue of old_version while registering. I have tried all the options found in these posts but with no luck yet.

Thank you.

e

amolkhade17 commented 7 years ago

Guys please share , I am facing probleme in C# as old version

avinashajith commented 7 years ago

I am getting no_routes if I use "s40" as Environment and "old_version" when environment is android. My current version of yowsup is 2.5.2 and yowsup-cli is 2.0.15.

jinnkhan88 commented 7 years ago

check my comment on #1905 was able to fix the old_verion & no_routes issue.

dheec commented 5 years ago

I hope someone is still following this thread. I am working on raspberry pi communication with Whats app. Now i have stuck on yowsup registration fail. Reason old version. How to get out of this. This is my first time working with python and raspberry pi. How to get version of yowsup. How to update yowsup library. Please let me know about the solution.