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 failing with "old_version" with "s40" env #2422

Closed
EibrielInv opened this issue Feb 1, 2018 · 32 comments
Closed

Registration failing with "old_version" with "s40" env #2422

EibrielInv opened this issue Feb 1, 2018 · 32 comments

Comments

@EibrielInv
Copy link

Command:

yowsup-cli registration --requestcode sms --phone 54XXXXXXXXXXX --cc 54 --mcc 722 --mnc 010 --env s40

Results in:

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:b'{"login":"54XXXXXXXXXXX","status":"fail","reason":"old_version"}\n'
reason: b'old_version'
status: b'fail'
login: b'54XXXXXXXXXXX'

I'm not testing with Android, since apparently results in blocked numbers

@juanpmarin
Copy link

@EibrielInv I tested with Android and it does not work also, s40 is still not working ?

@luisnunezsalgado
Copy link

lnunez@lnunez-Latitude-E7440:~/Desktop/wsp$ docker run -v /home/lnunez/Desktop/wsp:/root/.yowsup tgalal/yowsup registration --cc 56 --phone 56964364810 --requestcode sms
Unable to find image 'tgalal/yowsup:latest' locally
latest: Pulling from tgalal/yowsup
4d06f2521e4f: Pull complete
ee0c9f14fb72: Pull complete
cf85266a02b3: Pull complete
52989c0b30a6: Pull complete
b73e6df6eedf: Pull complete
Digest: sha256:4038214d8a75f0b573b39975f7968664792a53beadce8d49fe9cb71aeb9c17bf
Status: Downloaded newer image for tgalal/yowsup:latest
INFO:yowsup.common.http.warequest:{"login":"56964364810","status":"fail","reason":"old_version"}

status: fail
reason: old_version
login: 56964364810
lnunez@lnunez-Latitude-E7440:~/Desktop/wsp$

@mcepl
Copy link

mcepl commented Feb 7, 2018

matej@mitmanek: Desktop$ docker run -v /home/matej/Desktop:/root/.yowsup tgalal/yowsup registration --cc 420 --phone 420604893825 --requestcode sms
Unable to find image 'tgalal/yowsup:latest' locally
Trying to pull repository registry.access.redhat.com/tgalal/yowsup ... 
Trying to pull repository docker.io/tgalal/yowsup ... 
latest: Pulling from docker.io/tgalal/yowsup
4d06f2521e4f: Pull complete 
ee0c9f14fb72: Pull complete 
cf85266a02b3: Pull complete 
52989c0b30a6: Pull complete 
b73e6df6eedf: Pull complete 
Digest: sha256:4038214d8a75f0b573b39975f7968664792a53beadce8d49fe9cb71aeb9c17bf
Status: Downloaded newer image for docker.io/tgalal/yowsup:latest
Traceback (most recent call last):
  File "/usr/bin/yowsup-cli", line 323, in <module>
    if not parser.process():
  File "/usr/bin/yowsup-cli", line 158, in process
    self.handleRequestCode(self.args["requestcode"], config)
  File "/usr/bin/yowsup-cli", line 174, in handleRequestCode
    method
  File "/usr/lib/python2.7/site-packages/yowsup/registration/coderequest.py", line 14, in __init__
    idx = StorageTools.getIdentity(cc + p_in)
  File "/usr/lib/python2.7/site-packages/yowsup/common/tools.py", line 70, in getIdentity
    path = StorageTools.getStorageForPhone(phone)
  File "/usr/lib/python2.7/site-packages/yowsup/common/tools.py", line 60, in getStorageForPhone
    return StorageTools.constructPath(phone + '/')
  File "/usr/lib/python2.7/site-packages/yowsup/common/tools.py", line 55, in constructPath
    os.makedirs(os.path.dirname(fullPath))
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/root/.yowsup/420604893825'
matej@mitmanek: Desktop$ sudo docker run -v /home/matej/Desktop:/root/.yowsup tgalal/yowsup registration --cc 420 --phone 420604893825 --requestcode sms
matej@mitmanek: Desktop$ sudo docker run -v /home/matej/Desktop:/root/.yowsup tgalal/yowsup registration --cc 420 --phone 420604893825 --requestcode sms
[sudo] password for matej: 
matej@mitmanek: Desktop$ man docker

???

@patR1
Copy link

patR1 commented Feb 8, 2018

Got the same issue looks like stopped working since last week.?
yowsup-cli v2.0.15
yowsup v2.5.7

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

@vichogerman
Copy link

I have the same issue, please give more traction in order to get a fix for this.

@luisnunezsalgado
Copy link

@mcepl that is another error, it's not related with the old_version issue reported on this bug.

@Elintondm
Copy link

I have the same error: 'old_version'

@penpenaj
Copy link

penpenaj commented Feb 9, 2018

status: fail
reason: old_version

if i login using env android... phone number get banned...
if i login using env s40 .. status : fail

s40 env version = 2.16.12
same here... happen since 2 days ago

@horaciojr
Copy link

do not use s40, it doesnt work.

@halikarnass
Copy link

try using enviroment android and change this in the env_android-py
_MD5_CLASSES = "YqW9KfOVL6cRD8aiNh8l6w=="
_VERSION = "2.18.45"

works fine for me

@cskowronnek
Copy link

@halikarnass it works, thank you

1 similar comment
@maiconcosta
Copy link

@halikarnass it works, thank you

@patR1
Copy link

patR1 commented Feb 12, 2018

it works for what 2-3 days ? then you wait for some other code upgrade.. I guess that's the only option when using an un supported ..

as for myself im exploring other options then yowsap.api

Thank you

@for2ne
Copy link

for2ne commented Feb 13, 2018

Hi @halikarnass, whatsapp does not ban a number in a couple of days automatically if to register via android env?

Thank

@munknex
Copy link

munknex commented Feb 13, 2018

@halikarnass

Requesting code using -E android works fine:
./yowsup-cli registration -E android --requestcode sms --phone 380... --cc 380

But registration using -E android fails:
./yowsup-cli registration --register XXXXXX --phone 380... --cc 380 -E android

{"login":"...","status":"fail","reason":"temporarily_unavailable","retry_after":300,"sms_wait":300,"voice_wait":300}

Registration using -E s40 also fails with reason: old_version.

Any ideas how to fix it? Maybe we need new s40 token?

@altmas5
Copy link

altmas5 commented Feb 14, 2018

Hello,

I am getting the same error during registration --register step but with android env.

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

I have other number/identity already registered and It's still working.
I am trying to perform the registration with this config:

_MD5_CLASSES = "YqW9KfOVL6cRD8aiNh8l6w=="
_VERSION = "2.18.45"

@pabloruan0710
Copy link

Any ideas how to fix it? Maybe we need new s40 token?

@for2ne
Copy link

for2ne commented Feb 15, 2018

WhatsApp stoped registration new numbers via Nokia s40.
Registrations via android env are banned by WhatsApp automatically.

@munknex
Copy link

munknex commented Feb 16, 2018

@for2ne any ideas how to avoid ban after registration via android env?

@flavionegrao
Copy link

Has anyone been able to register a new number recently?

@altmas5
Copy link

altmas5 commented Feb 26, 2018

#2436

@BodduSatya
Copy link

while registering with 6 digit code , i got the following old version.

yowsup-cli registration --register 564100 --phone xxxxxxxxxxxx --cc 91
yowsup-cli v2.0.15
yowsup v2.5.7

INFO:yowsup.common.http.warequest:b'{"login":"xxxxxxxxxxxx","status":"fail","reason":"old_version"}\n'
status: b'fail'
login: b'xxxxxxxxxxxx'
reason: b'old_version'

i am using en_android.py following version
_MD5_CLASSES = "YqW9KfOVL6cRD8aiNh8l6w=="
_VERSION = "2.18.45"

please help me.

@BodduSatya
Copy link

yes, i got the solution.

@JulioImolesi
Copy link

@BodduSatya What you've done?

@BodduSatya
Copy link

open file: yowsup/env/init.py

Comment the third line:
#from .env_s40 import S40YowsupEnv
This will force registration to use android_env file.

If you have installed yowsup using pip, you shuold uninstall it first (pip uninstall yowsup) then run build and install.
To record a list of installed files, you can use:
python setup.py install --record files.txt

python setup.py build
python setup.py install

@munknex
Copy link

munknex commented Mar 7, 2018

@BodduSatya but how do you avoid ban? How long do you use registered account after registration?

@BodduSatya
Copy link

unfortunately, my number was banned , after register 1 day.

any other solution...

@altmas5
Copy link

altmas5 commented Mar 13, 2018

#2448 #2452 #2455

@altmas5
Copy link

altmas5 commented Mar 13, 2018

Now I am getting this message on one number I already registered a few months ago:

general: Login Failed, reason: not-authorized
Auth Error, reason not-authorized

I would like to remember this:

If you appreciate this software and you would like to support future
development please consider donating:
http://openwhatsapp.org/yowsup/donate

And this:
dxyrlygx0aiase-

@altmas5
Copy link

altmas5 commented Mar 19, 2018

#2458

@altmas5
Copy link

altmas5 commented Mar 22, 2018

#2462

@dharampal123
Copy link

Did the below changes and worked for me:

Change in env.py file
set DEFAULT="android"

Change on env_android.py
_MD5_CLASSES = "DAPy33TbNMg0Yuplp2II0A=="
_VERSION = "2.18.339"

python setup.py build

python setup.py install

yowsup-cli registration -r sms -m 000 -n 00 -p 91XXXXXXXXXX -C 91 -E android

@tgalal tgalal closed this as completed May 5, 2019
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