Closed tomatensuppe closed 7 years ago
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.
Reading: https://github.com/tgalal/yowsup/issues/1885, try the version _VERSION = "2.16.11" Y _TOKEN_STRING = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1478194306452 {phone}"
And worked perfectly. ........................................................... Leyendo: https://github.com/tgalal/yowsup/issues/1885, intente con la version _VERSION = "2.16.11" y _TOKEN_STRING = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1478194306452{phone}"
y funciono perfectamente.
This is a very old PR. Use my master env_s40.py file instead.
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?
you are great!!! Thanks a lot !!!
@Jan2220 you have to remove the space between the token and {phone} PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1471306425030{phone}
With or without space, same error
status: fail reason: old_version login: XXXXXXXXXXX
@thejockel
With or without space, same error
status: fail reason: old_version login: XXXXXXXXXXX
Same Error at my system... login: XXX = my phone number
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
and boom!! now i can register and send messages.
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
very sad :(
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!!!!!
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 :)
This env fix got things working here.
"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..
Hi @ruha9005 we have the same issue, have you made any progress?
@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:
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
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?
fixed
I've been unable to fix this problem. Also can't find setup.py anywhere in the yowsup directory
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
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
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.....
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
@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.
@ruha9005 still not working for me. My env_s40 configuration : https://paste.fedoraproject.org/paste/nVUq7EpSOAs7NbHYBA0CLV5M1UNdIGYhyRLivL9gydE=
And this is the error message : https://paste.fedoraproject.org/paste/3n6uy3yzmZyYUgokhKWOy15M1UNdIGYhyRLivL9gydE=
@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.
@efendimansur Try to use this: https://paste.ofcode.org/39Ex7FfcqF4KT5GNLmWtJw2
@ruha9005 Thanks before for your help.
The configuration env_s40.py is still not working for me, error message old_version.
@efendimansur It's strange, because this configuration works recently. Try to comletely replace your env_s40.py with this codepaste. P.S: yowsup have problems with detecting russian phone numbers. It detects them as kazakhstan numbers.
@ruha9005 too bad, registration still doesn't work even with your env
@everybody, i have the same issue, my number got blocked yesterday, so i was trying with new number. i have even changed the env_android.py to latest i.e 2.17.188. still the same issue. wheather it is s40 or android it dosent affect me, Kindly help @tgalal
@yerunkar11 Don't use env_android.py regardless of registration success when using this.
Hi @ruha9005 i tried the versión 2.16.9 and sent me this error: old_version And tried too with the versión 2.16.11 and sent me this other error: bad_token when i tried this token: PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1478194306452{phone}
Sorry for my english.
Thanks so much!!
@ruha9005 Can you tell us why? env_android is the only way it works for me
@cinatic Many people say that using this method leads to account ban. I can't provide issue thread where I read this, but I remember this.
@ruha9005 It's still doesn't work with your env_s40.py configuration. Still error old_version.
Any idea?
@efendimansur do not use env_s40.py. Use env_android.py.
here is the link:
https://paste.fedoraproject.org/paste/f16Yp0Bwl5vqjW9FVcSRTl5M1UNdIGYhyRLivL9gydE=
hope this helps.
use env android during registration
@jinnkhan88 Thanks a lot. It's worked to register my phone number
When trying with the tokens, it shows me the same message of old version, I tried almost all the variants and versions that I found in the forums. Please if someone has a token that is currently valid and I can provide it, I thank you beforehand.
Same here, none of those works. Please let me know if you find a solution. Can the token be sniffed somehow?
here you can get the new tokens: https://coderus.openrepos.net/whitesoft/whatsapp_scratch
you need to enter them either in env_s40.py or into env_android.py. If s40 does not work try android. e.g:
./yowsup-cli registration -E android --requestcode sms --phone numberxxx --cc 49 --mcc 232 --mnc 10
BTW from 30 June 2017 S40 will be abandoned from WhatsApp so Yowsup will most likely stop working
@cinatic how do we use these codes? Guess a goes to the MD5_CLASSES, but the others?
the one with ending "==" is for md5_classes then you need to try the versions and that's it
the other keys are for ens_s40
Version: 2.17.242 String classesMd5 = "ziYneeSZm5qExsEFX/AoMQ==";
could someone leave the current version and Md5? Still does not work for me!
ageof, thanks a lot! That worked.
Hi can some one help me, i got the this error: The Sim Kart is from Vodafon. Thank you for help
Array ( [cc] => 49 [in] =>1522540XXXX [lg] => de [lc] => DE [id] => &�z�s������"7�� [token] => zmfqZkUu1eQAHsD8HG8KkOrPE= [mistyped] => 6 [network_radio_type] => 1 [simnum] => 1 [s] => [copiedrc] => 1 [hasinrc] => 1 [rcmatch] => 1 [pid] => 7750 [rchash] => e632075766318032a21cfa51a2e0c3306f8c9ba9241569fbd5dd27b1eebe02d1 [anhash] => 5c4bde877e73870f99dd26db2509043c [extexist] => 1 [extstate] => 1 [mcc] => 262 [mnc] => 004 [sim_mcc] => 262 [sim_mnc] => 004 [method] => sms ) stdClass Object ( [login] => 4915143442279 [status] => fail [reason] => no_routes [retry_after] => 3600 [sms_wait] => 60 [voice_wait] => 60 )
Guys, could you tell me where do you obtain the tokens for the new WhatsApp versions?
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 (https://github.com/tgalal/yowsup/pull/1716).
I get always the issure "Old Version"
have anyone of you an idear how i can fix this issure ?
Thanks