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

Number Registration Status : fail, reason :Old Version #1905

Closed
tomatensuppe opened this issue Jan 7, 2017 · 103 comments
Closed

Number Registration Status : fail, reason :Old Version #1905

tomatensuppe opened this issue Jan 7, 2017 · 103 comments

Comments

@tomatensuppe
Copy link

Hello,

I'm trying to register a new number with my yousup client - i have the newest version also with the last updates for the Android and s40 env files (#1716).

I get always the issure "Old Version"

have anyone of you an idear how i can fix this issure ?

Thanks

@darkchicles
Copy link

The project has some months left over and whatsapp takes some version updates currently found in: 2.16.19 so you need to edit the file: yowsup-2.5.0 \ yowsup \ env \ env_s40.py in the line:
_VERSION = "2.16.9", should also be edited _TOKEN_STRING = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1471306425030 {phone}", the only problem is that I do not know how to get TOKEN_STRING, maybe with a Sniff when registering a number, but I leave that to Otherwise, it seems that whatsapp has changed its activation request strings a bit (INFO: yowsup.common.http.warequest: {"status": "fail", "reason": "incorrect", "sms_length ": 6," voice_length ": 6," sms_wait ": 0," voice_wait ": 0}) so now I only have to wait for it to update or investigate a little what is the TOKEN STRING and the request string Of activation.
.............................................................
El proyecto tiene algunos meses abandonado y whatsapp lleva algunas actualizaciones de version actualmente se encuentra en: 2.16.19 por lo que es necesario editar el archivo: yowsup-2.5.0\yowsup\env\env_s40.py en la linea:
_VERSION = "2.16.9" , tambien se debe editar _TOKEN_STRING = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1471306425030{phone}" , el unico problema es que no se como obtener el TOKEN_STRING, tal vez con un Sniff al momento de registrar un numero, pero eso lo dejo para otra ocación, adicional a eso parece ser que whatsapp ha cambiado un poco sus cadenas de solicitud de activaicion (INFO:yowsup.common.http.warequest:{"status":"fail","reason":"incorrect","sms_length":6,"voice_length":6,"sms_wait":0,"voice_wait":0}) por lo que ahora solo me queda esperar a que se actualice o bien investigar un poco cual es el TOKEN STRING y la cadena de peticion de activacion.

@darkchicles
Copy link

Reading: #1885, try the version
_VERSION = "2.16.11"
Y
_TOKEN_STRING = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1478194306452 {phone}"

And worked perfectly.
...........................................................
Leyendo: #1885, intente con la version
_VERSION = "2.16.11"
y
_TOKEN_STRING = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1478194306452{phone}"

y funciono perfectamente.

@jlguardi
Copy link
Collaborator

jlguardi commented Jan 8, 2017 via email

@Jan2220
Copy link

Jan2220 commented Jan 9, 2017

Tried nearly every token and version from the issue entries... nothing worked...
Still getting
status: fail
reason: bad_token

s40 at this time:
2.16.11
PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1471306425030 {phone}

maybe new Token String?

@tomatensuppe
Copy link
Author

you are great!!! Thanks a lot !!!

@thejockel
Copy link

@Jan2220 you have to remove the space between the token and {phone} PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1471306425030{phone}

@f2012444
Copy link

With or without space, same error

status: fail
reason: old_version
login: XXXXXXXXXXX

@Jan2220
Copy link

Jan2220 commented Jan 10, 2017

@thejockel

With or without space, same error

status: fail
reason: old_version
login: XXXXXXXXXXX

Same Error at my system...
login: XXX = my phone number

@cjaburto
Copy link

same thing here , i solved changing the _VERSION and ,_TOKEN_STRING , i believe theres a pull request for this, i follow this https://github.com/tgalal/yowsup/pull/1889/files
#1889
and boom!! now i can register and send messages.

@Jan2220
Copy link

Jan2220 commented Jan 10, 2017

same thing here , i solved changing the _VERSION and ,_TOKEN_STRING , i believe theres a pull request for this, i follow this https://github.com/tgalal/yowsup/pull/1889/files
#1889
and boom!! now i can register and send messages.

Again, same error...

My s40 enfv:
class S40YowsupEnv(YowsupEnv):
_VERSION = "2.16.11"
_OS_NAME= "S40"
_OS_VERSION = "14.26"
_DEVICE_NAME = "302"
_MANUFACTURER = "Nokia"
_TOKEN_STRING = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1478194306452{phone}"
_AXOLOTL = True

@mrdamaia
Copy link

very sad :(

@Pflasterbicker
Copy link

Pflasterbicker commented Jan 12, 2017

I used the Info from darkchicles...

Changed Version Nr. to 2.16.11
and i´m using this token: PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1478194306452{phone}

Works fine since a reboot :)

Thanks guys!!!!!

@Jan2220
Copy link

Jan2220 commented Jan 12, 2017

Changed Version Nr. to 2.16.11
and i´m using this token: PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1478194306452{phone}

i let setup.py build and install yowsup again and it worked after this :)

@Gab0
Copy link

Gab0 commented Jan 17, 2017

This env fix got things working here.

@ruha9005
Copy link

ruha9005 commented Jan 19, 2017

"Old version" issue can be fixed with this MD5 generator. Just download last apk from official WhatsApp website, get it's version and generate MD5 from apk (classes.dex)
String classesMd5 = "1naz8gL5pIYWbtaOZ3207g==";
String WHATSAPP_DEVICE = "Android";
String WHATSAPP_VER = "2.17.16";
But I can't login after that..

@PPIII
Copy link

PPIII commented Jan 24, 2017

Hi @ruha9005 we have the same issue, have you made any progress?

@ruha9005
Copy link

@PPIII Hi. I don't have any issue with registration process, but I can't login, because I don't know how to properly make auth blob (Error: stream:error<encrypt_sends_push></encrypt_sends_push></stream:error>)...

@xhcardoza
Copy link

Hello, I have the old version error, I have updated the s40 file with output from: https://coderus.openrepos.net/whitesoft/whatsapp_scratch

_VERSION = "2.17.76"
and
_TOKEN_STRING = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk{phone}"

But I still get the Old version error.

Could you please tell me what I'm missing?

Thanks in advance

@xhcardoza
Copy link

I solved the issue by deleting the .pyc since it has the old version. I successfully register my phone and obtain the password but now I am stuck just in the same point I was with Chat API after we send a response i get disconnected without any error.

Could you please tell me what can I check to solve this?

@tgalal
Copy link
Owner

tgalal commented Mar 23, 2017

fixed

@tgalal tgalal closed this as completed Mar 23, 2017
@teunbruijnen
Copy link

I've been unable to fix this problem. Also can't find setup.py anywhere in the yowsup directory

@DobmanHeras
Copy link

teunbruijnen, this worked for me:

did a search on filesystem for "env_s40.py". Found mine in /usr/lib/python2.7/dist-packages/yowsup/env

Then edited the file as per #1889

In the future you might want to use https://github.com/mgp25/classesMD5-64 to generate md5

@cinatic
Copy link

cinatic commented May 28, 2017

The version has been updated again, it's not working again.

i got the data from https://coderus.openrepos.net/whitesoft/whatsapp_scratch and tried to set the version in env_s40 to 2.16.12 but then it says invalid token

@SteGe88
Copy link

SteGe88 commented May 29, 2017

Indeed, same for me. The old s40 env file isn't working anymore (old version) and the code from cinatic is giving a bad token error.....

@efendimansur
Copy link

I facing same issue. My environment:
yowsup-cli v2.0.15
yowsup v2.5.2
status: fail
reason: bad_token

_VERSION = "2.17.188"
_TOKEN_STRING = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk{phone}"

Currently Whatsapp version for android is 2.17.190.

Thanks

@ruha9005
Copy link

ruha9005 commented May 31, 2017

@efendimansur
Try this:
_VERSION = "2.16.11"
_TOKEN_STRING = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk" + 1478194306452L + phone
Second Long is release time. 2.17.188 is last version for Android, not for S40.

@efendimansur
Copy link

@ruha9005
Copy link

ruha9005 commented May 31, 2017

@efendimansur
My code:
private static final String RELEASE_TOKEN_CONST = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk";
generateRequestToken(String phone) throws IOException, NoSuchAlgorithmException {
if (WHATSAPP_METHOD_FOR_S40)
return WhatsMediaUploader.md5(RELEASE_TOKEN_CONST + 1478194306452L + phone);
}
It's in Java. Try to delete 'L' letter from release time.
P.S: I'll send you my env_s40.py in pm if you want.

@ruha9005
Copy link

@jacky0915
Copy link

Great, it works.

@vvjj83
Copy link

vvjj83 commented Feb 16, 2018

It worka

@tedyblood
Copy link

Not work today. i use
_VERSION = "2.16.12"
_OS_NAME= "S40"
_OS_VERSION = "14.26"
_DEVICE_NAME = "302"
_MANUFACTURER = "Nokia"
_TOKEN_STRING = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1494451854337{phone}"
_AXOLOTL = True

and before rebuild python setup.py install

@vvjj83
Copy link

vvjj83 commented Feb 17, 2018

Use -- env android

@lmoraes123
Copy link

I received the message and the call but can't register, return old version

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

@charanjit-singh
Copy link

charanjit-singh commented Feb 18, 2018

_VERSION = "2.16.12"
_TOKEN_STRING = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1494451854337{phone}"
and rebuild "python3 setup.py install"

Please Read above thread/

@flavionegrao
Copy link

Just use the token mentioned by @charanjit-singh and rebuild.

Using a twillo number works:

./yowsup-cli registration --requestcode sms --phone 32460209128 --cc 32 --mcc 724 --mnc 01
yowsup-cli  v2.0.15
yowsup      v2.5.7

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:{"login":"32460209128","status":"sent","length":6,"method":"sms","retry_after":109,"sms_wait":109,"voice_wait":65}

status: sent
retry_after: 109
length: 6
login: 32460209128
method: sms

Now using a real mobile number fails:

/yowsup-cli registration --requestcode sms --phone 5541988886210 --cc 55 --mcc 724 --mnc 12
yowsup-cli  v2.0.15
yowsup      v2.5.7

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:{"login":"554188886210","status":"fail","reason":"old_version"}

status: fail
reason: old_version
login: 554188886210

@emretekince
Copy link

@flavionegrao same here. it keeps saying old_version for 2.16.12

@flavionegrao
Copy link

s40 cannot register anymore see #2436

Explanation:
https://faq.whatsapp.com/en/android/26000006/
Support for older operating systems
The following platforms are no longer supported:

For the following platforms, you can no longer create new accounts, nor re-verify existing accounts. However, you'll be able to continue using WhatsApp:

BlackBerry OS and BlackBerry 10 until December 31, 2017
Windows Phone 8.0 and older until December 31, 2017
Nokia S40 until December 31, 2018
Android versions 2.3.7 and older until February 1, 2020

@emretekince
Copy link

Hmm I think we need to create a new library for 2.0 protocol.

@mpandi
Copy link

mpandi commented Jun 2, 2018

Hello all,
Am still getting error: old version
My s40 env

_VERSION = "2.16.12"
_OS_NAME= "S40"
_OS_VERSION = "14.26"
_DEVICE_NAME = "302"
_MANUFACTURER = "Nokia"
_TOKEN_STRING = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1494451854337{phone}"
Can anyone help please

@viktor-sc
Copy link

Hi there,

Can you tell me if it should work right now? I'm new to this and tried it today for a quite long time, but get the error with old version...

And another quick question: Is it possible to receive pics with yowsup and store them on the filesystem?

Thanks in advance,
Viktor

@Subhajit321
Copy link

Wart registration issue
image
old version error

@kurokirasama
Copy link

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

@abdelrahmanhadad
Copy link

plz, i try to get whatsapp password but there is error : SMS{"login","***********","status","fail","reason":"old version"}. any help

@rahmatnazali
Copy link

rahmatnazali commented Sep 28, 2018

as per this day, I successfully register my number following others suggestion above.

The important thing is:

  1. Use -env android to use android as the environtment
  2. because I used android environtment, I need to change env_android.py (not env_s40.py)

My env_android.py would look like following (keep the rest untouched)

 _MD5_CLASSES = "c0t8PI31J5Kr8refq0AA6g=="
 _VERSION = "2.18.287"
  1. rebuild it by running python setup.py install

as long as there is no update in the APK, I am sure that the above MD5 Classes and Version will work. Should another old version error happens, you should renew your MD5 and version by looking at https://coderus.openrepos.net/whitesoft/whatsapp_scratch, just like mentioned by others above.

I hope this helps.

@maurissao
Copy link

maurissao commented Nov 4, 2018

The const is on "env_android.py" file

@maurissao
Copy link

I think u are in the wrong project

@maurissao
Copy link

@ambravo
Copy link
Contributor

ambravo commented Dec 13, 2018

as per this day, I successfully register my number following others suggestion above.

The important thing is:

  1. Use -env android to use android as the environtment
  2. because I used android environtment, I need to change env_android.py (not env_s40.py)

My env_android.py would look like following (keep the rest untouched)

 _MD5_CLASSES = "c0t8PI31J5Kr8refq0AA6g=="
 _VERSION = "2.18.287"
  1. rebuild it by running python setup.py install

as long as there is no update in the APK, I am sure that the above MD5 and Classes will work. Should another old version error happens, you should renew your MD5 and version by looking at https://coderus.openrepos.net/whitesoft/whatsapp_scratch, just like mentioned by others above.

I hope this helps.

It did help. Thanks!

@ByzDraft
Copy link

Hey

I was reading all off you comments, i had the question. Can their be a problem if i using iphone 7? Cause it is apple and i'am reading android

@mosaw
Copy link

mosaw commented Feb 3, 2019

hi @antonio070592
can u send me ur gmial or any social media account

@ByzDraft
Copy link

ByzDraft commented Feb 3, 2019 via email

@mosaw
Copy link

mosaw commented Feb 3, 2019

I sent msg to u on whats num @antonio070592

Repository owner deleted a comment Feb 3, 2019
@mosaw
Copy link

mosaw commented Feb 3, 2019

wating @antonio070592

@wisrovi
Copy link

wisrovi commented Feb 27, 2019

Version= "2.19.51"
MD5=" bdZVQh58MKZaaeiYnh7wkw=="

@ahmed-alii
Copy link

ahmed-alii commented Mar 3, 2019

Still Old version @wisrovi.
I just tried your code. And I got the response:
INFO:yowsup.common.http.warequest:b'{"login":"923014188888","status":"fail","reason":"old_version"}\n'
Any other suggestions?

@Sakai92
Copy link

Sakai92 commented Sep 23, 2019

Hi Guys, I have problem with whatsapp wart registration failed and blocked.

First Request Code and confirm will come out with this message
{"login":"601117xxxxxx","status":"fail","reason":"temporarily_unavailable","retry_after":3600}

Second time Request code will be blocked my number
Could not request code {"status":"fail","reason":"blocked","login":"601117xxxxx"}

have anyone of you know how to fix this problem ? I willing to pay for your service ^^

1
2

@Aswinth-raj
Copy link

Hey Can someone of you gif the code they use with the Raspery Pi 3 for Whatsapp, and please also the edits in the special files Thanks Op zo 3 feb. 2019 om 21:38 schreef antonio070592 notifications@github.com:

oi @ antonio070592 você pode me enviar ur gmial ou qualquer conta de mídia social whatsapp + 55 62 91578747 — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#1905 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AsrTUH_Q3tF-HypOfd9PaT5dHcqo4p2Xks5vJ0jSgaJpZM4LdjRK .

People who are trying to get whatsapp working on Raspberry Pi have to install Yowsup library using sudo command (clone from git) and then set up your whatsapp account with a valid phone number. With that you can send and receive text messages.
I followed this Whatsapp on Raspberry Pi tutorial to get things working, but I am not able to figure out how to share images. Has anyone seen success with images?

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