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

Registration: {"status":"fail","reason":"old_version"} #1885

Closed
munknex opened this issue Dec 24, 2016 · 40 comments
Closed

Registration: {"status":"fail","reason":"old_version"} #1885

munknex opened this issue Dec 24, 2016 · 40 comments

Comments

@munknex
Copy link

munknex commented Dec 24, 2016

Can not register. Please help.
Tried to change values to

2.16.11
PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1478194306452{phone}

Don't work.

@ghost
Copy link

ghost commented Dec 24, 2016

Use -E android parameter to use android env.

@jacobSingh
Copy link

I tried this, got the same error with -E android

@Mailaender
Copy link
Contributor

Same here with

yowsup-cli  v2.0.15
yowsup      v2.5.0

@sebastianancho
Copy link

Hi,

I solved issue changin env_s40.py whith this values:
_VERSION = "2.16.11"
_TOKEN_STRING = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1478194306452{phone}"

My Version:
yowsup-cli v2.0.15
yowsup v2.5.0

Do not forget to recompile!

@munknex
Copy link
Author

munknex commented Dec 26, 2016

Do not forget to recompile!

Thanks! Running ./setup.py install is what I needed!

@sylvainblot
Copy link

same here issue fixed

@MarcoBuster
Copy link

@sebastianancho where is the file env_s40.py?

@Mailaender
Copy link
Contributor

@MarcoBuster See my patch at #1889 or install https://software.opensuse.org/package/python-yowsup2 which is already patched.

@MarcoBuster
Copy link

@Mailaender Thanks!

@netofontess
Copy link

netofontess commented Dec 30, 2016

Hi,

I change the file, but how i recompile?

Tk's!

@MarcoBuster
Copy link

@netofontess python setup.py install

@netofontess
Copy link

netofontess commented Dec 30, 2016

@MarcoBuster Don't exist the setup.py

@MarcoBuster
Copy link

@netofontess What? Do cd yowsup-masterand python setup.py install

@netofontess
Copy link

@MarcoBuster The folder is in '/usr/lib/python2.6/site-packages/yowsup'
But dont have any file call setup.py... I tried find by the name.

@MarcoBuster
Copy link

@netofontess Idk. Try to download from GitHub the repo, unzip it, edit the file env_s40.py, cd yowsup-master and python setup.py install.

@netofontess
Copy link

netofontess commented Dec 30, 2016

@MarcoBuster I tried download from GitHub and now i found the setup.py....
But now I received this message when command 'yowsup-cli registration':
Traceback (most recent call last):
File "/usr/bin/yowsup-cli", line 4, in
import('pkg_resources').run_script('yowsup2==2.5.0', 'yowsup-cli')
File "/usr/lib/python2.6/site-packages/pkg_resources/init.py", line 739, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.6/site-packages/pkg_resources/init.py", line 1486, in run_script
raise ResolutionError("No script named %r" % script_name)
pkg_resources.ResolutionError: No script named 'yowsup-cli'

@netofontess
Copy link

I deleted all the yowsup folders and ran the setup.py command again. It worked!

Thank's!

@b10w60
Copy link

b10w60 commented Dec 31, 2016

Did all that, still not working for me.

@b10w60
Copy link

b10w60 commented Jan 2, 2017

Still not working.

@vityapro
Copy link

vityapro commented Jan 4, 2017

@munknex please close issue

@Jan2220
Copy link

Jan2220 commented Jan 9, 2017

status: fail
reason: bad_token

Nothing worked.

@munknex munknex closed this as completed Jan 9, 2017
@Neurotec
Copy link

Neurotec commented Feb 3, 2017

thanks work's

@umeshrege
Copy link

thanks...it works!

@handflucht
Copy link

Thank you @sebastianancho for providing these values. Can you please inform me about the necessary steps to these values, so the next time it breaks we can fix it on our own?

@eldimar
Copy link

eldimar commented Feb 16, 2017

No work, version 2.6.19
yowsup-cli registration --requestcode sms --phone 5561XXXXX --cc 55 --mcc 724 --mnc 05
INFO:yowsup.common.http.warequest:{"login":"5561XXXXXXX","status":"fail","reason":"old_version"}

status: fail
reason: old_version
login: 5561XXXXXXX

@Aranad
Copy link

Aranad commented Feb 16, 2017

Doh! I did ./setup.py build but not install! Working with 2.16.11 :-)

Token: PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1478194306452{phone}

@eldimar
Copy link

eldimar commented Feb 16, 2017

@Aranad No work, How do I solve it? Which file should I edit?

@Aranad
Copy link

Aranad commented Feb 16, 2017

@eldimar The file is env/env_s40.py you set the _VERSION to "2.16.11" and "_TOKEN_STRING" to "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1478194306452{phone}". Then you must run ./setup.py build and ./setup.py install and then try registration again.

@eldimar
Copy link

eldimar commented Feb 16, 2017

@Aranad Thanks, working perfectly!

@Aranad
Copy link

Aranad commented Feb 16, 2017

@eldimar I've registered a number on the network, but I can't get pidgin to connect - I'm guessing its because whatsapp.purple's not being developed anymore - do you know of any alternative clients?

@giuseppepaolo
Copy link

giuseppepaolo commented Feb 22, 2017

@Aranad No work registration in my environment with these Token and Version.

Show the error: BAD_TOKEN. This problem occurred after yesterday. In another days, was ok.

Can you test a new registration with env_S40 in Version 2.16.11 please?

@Aranad
Copy link

Aranad commented Feb 22, 2017

I don't have yowsup installed any more, can you show me the exact token string you have?

@giuseppepaolo
Copy link

Sure:

    _VERSION = "2.16.11"
    _TOKEN_STRING = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1478194306452{phone}"

@Aranad
Copy link

Aranad commented Feb 22, 2017

Strange, I never got a bad token error with that :-/

@giuseppepaolo
Copy link

@Aranad, with yowsup from tgalal its ok. But with yowsup fork jlguardi no. Thanks.

@Rahulyennu
Copy link

Did all the above it doesnt work.

@ravesingh1983
Copy link

Done any one know the token for 2.17 version as 2.16 is giving old version error

@filipemontt
Copy link

@Aranad i use ./setup.py but show "bash: ./setup.py: No such file or directory"

@DavidPrada23
Copy link

Help!
Failed, reason old_version. Checking for a new token..
Traceback (most recent call last):
File "yowsup-cli", line 274, in
result = wc.send()
File "/home/pi/yowsup/src/Yowsup/Registration/v2/coderequest.py", line 75, in send
parsed = jParser.parse(tokenData.decode(), pvars)
File "/home/pi/yowsup/src/Yowsup/common/Http/waresponseparser.py", line 132, in parse
d = json.loads(jsondata)
File "/usr/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

@kurokirasama
Copy link

hello, i installed yowsup-cli with apt on ubuntu 18.04. Where is this env_s40.py file located?

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