Yowsup: not authorized error

Created on 10 Jan 2017  Â·  32Comments  Â·  Source: tgalal/yowsup

I have 2 wa bots in my wlan runnning.
By night my wa bots turned offline and at the morning there was this not authorized error.

When i try to register again i get a code but the code isn't working. I tested the code in the demo client and in a run.py/layer.py program but it shows me the not authorized error agin and again.

For registration i am using the android env with version 2.16.148
and for running an instance i am using the s40 env with version 2.16.9.

Most helpful comment

It was a faily simple process
change your yowsup/yowsup/env/env_s40.py to look like the code below:

_VERSION = "2.16.11"
_OS_NAME= "S40"
_OS_VERSION = "14.26"
_DEVICE_NAME = "302"
_MANUFACTURER = "Nokia"
_TOKEN_STRING  = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1478194306452{phone}"

also make sure your env.py is using s40 as default, android does not work.
DEFAULT = "s40"

after that, recomile with the command below:
./setup.py install

yowsup should be working again.

All 32 comments

I had to update the env_s40.py. :)

I have exactly the same issue, looks like whatsapp is blocking s40 as from this morning?
It worked great for months, and as from this morning. even after updating and using latest versions I have issues :(

When I send a message:
root@domoticz:/home/xxxx/yowsup# yowsup-cli demos -c /home/xxx/yowsup/config -s 31xxxxxxxxx "bericht"
yowsup-cli v2.0.15
yowsup v2.5.0

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

Authentication Error: not-authorized

when I try to register again:
INFO:yowsup.common.http.warequest:{"login":"31xxxxxxxx","status":"fail","reason":"old_version"}

status: fail
reason: old_version

I think you have to use the s40 version from the pull requests.
I hope this can fix the problem, i am using the code from the pull request.
And make sure you are using the s40 version and not the android with
changing the standard env in ../env/env.py

I use the latest git clone.

How can I get the latest git pull request?

Op 10 jan. 2017 om 21:33 heeft Domeax <[email protected]notifications@github.com> het volgende geschreven:

I think you have to use the s40 version from the pull requests.
I hope this can fix the problem, i am using the code from the pull request.
And make sure you are using the s40 version and not the android with
changing the standard env in ../env/env.py

-
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/tgalal/yowsup/issues/1906#issuecomment-271689884, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AX4V--cMM3NYwvdayVHzzy6YpuoTvrsDks5rQ-ssgaJpZM4LfsXY.

Looks like it worked

Had to recompile after changing the code

I have the same issue since about 2 o'clock 10th Januar (GMT+1).

I habe this problem as well.
Can somebody explane what exacly do i have to change or how i have to recompile...

I have the same problem and not understood what to modify.

It was a faily simple process
change your yowsup/yowsup/env/env_s40.py to look like the code below:

_VERSION = "2.16.11"
_OS_NAME= "S40"
_OS_VERSION = "14.26"
_DEVICE_NAME = "302"
_MANUFACTURER = "Nokia"
_TOKEN_STRING  = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1478194306452{phone}"

also make sure your env.py is using s40 as default, android does not work.
DEFAULT = "s40"

after that, recomile with the command below:
./setup.py install

yowsup should be working again.

i can confirm it works! thanks a lot

thats true.. it works BUT
I am using 2 accounts for half a year, this update made my acounts UNAUTHORIZED!! so i registered them again and it worked very good for few hours ,it looked like all the functions work and the login was good and everything, BUT then again it became UNAUTHORIZED, I logged in using debug mode and saw it got BLOCKED !!!

You get blocked when sending more than 50 messages per day (I have been reading that somewhere, don't know if it's true...

never use your own mobile phone, use a prepay number for this

i didnt send any messages ,i think they changed something in this version in addition to the timestamp and the version change. i put some console printing and saw that after loggin i recive

Login success. Next password:
GToYWynY.......c1Mj7bKZi2I=

which look very similiar the password i put for the credentials.
but it wont work if ill try to replace it.

i am using this version for 3 days and got blocked..
i used the older versions for 6 months and never got blocked..

something changed.

Weird one,

I'm using yowsup for 7 months now in my domoticz environment,
never got blocked. Changed the version and things got working again sunday.

same here, using it and never get blocked

thats what i am saying... i never got block before.. but now things seems to be different :(

i have used it for 3 months and send over 100 messages, it works flawlessly until yesterday when update the version and token. maybe its getting massive.

I changed the versionline in env_s40.py to _VERSION = "2.16.11" - like mbroeken said...
It works well, thank you very much!

Thanks for your help @mbroeken =)

I Already change the default to s40 and the version, but still get error: Login fail and Not authorized.
Please advice for this problem.

Are you using version s40 2.16.11?‎ Have you instaled the change (python setup.py install)?

@jlguardi : yes, i already compiled (python setup.py install). Any other matter that i have to change?
image

have same problem, can some body help?

today it stoped working for me with 2.16.11 env

is there any kind of instruction how to get those token for the env?

@MarcelS04 Are you sure? I've tested on my computer and worked like a charm. Probably you started with other env file.

@jlguardi Yes I tried with this

_VERSION = "2.16.11" _OS_NAME= "S40" _OS_VERSION = "14.26" _DEVICE_NAME = "302" _MANUFACTURER = "Nokia" _TOKEN_STRING = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1478194306452{phone}"

and ran

sudo python setup.py install

but when I try /L I get

[offline]:/L general: Login Failed, reason: not-authorized Auth Error, reason not-authorized

@MarcelS04 Good new for us: S40 env is still working. Bad news for you: your number was banned by whatsapp.

@jlguardi [offline]:/L general: Login Failed, reason: not-authorized Auth Error, reason not-authorized

Is this denoting that my number is banned??

Today i send only 4 message from s40 - 2.6.11
it's blocked

Today i send only 3 messages from s40 - 2.16.11 and i got this when i tried to send 4th:

Authentication Error: not-authorized

this means my number was bloqued ?
or i must try recompile / install and try again ?

From this version we block my 3 number
And after this it's don't work

On Feb 9, 2017 7:23 PM, "Vinicius Ianni" notifications@github.com wrote:

Today i send only 3 messages from s40 - 2.16.11 and i got this when i
tried to send 4th:

Authentication Error: not-authorized

this means my number was bloqued ?
or i must try recompile / install and try again ?

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tgalal/yowsup/issues/1906#issuecomment-278646174, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AQOxzA74aBBcOWX2VvQXGDYdT-PVX_53ks5raxpCgaJpZM4LfsXY
.

After 4k msgs in 2 weeks I was blocked.

Was this page helpful?
0 / 5 - 0 ratings