tgalal / yowsup

The WhatsApp lib
GNU General Public License v3.0
7.02k stars 2.23k forks source link

Auth Error, reason not-authorized #1387

Closed jerryames closed 8 years ago

jerryames commented 8 years ago

Nothing changed in several months. suddently, this message appears:

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

Anyone knows how to solve this?

Simonwcm commented 8 years ago

i also have this problem. who can help?

piraa commented 8 years ago

Me too. Help us please!! Tks

terminet85 commented 8 years ago

1384

msshapira commented 8 years ago

Strange issue: For me one number works after applying PRs. However, another number still yeilds AuthError: not-authorized - using the same exact code. Now, as far as I know this does not mean "blocked" - so why would only one number act up?

(I'm replying to this rather than to #1384 because it's "closed" - don't need to add data to a closed issue...)

On Wed, Mar 23, 2016 at 7:15 AM, terminet85 notifications@github.com wrote:

1384 https://github.com/tgalal/yowsup/issues/1384

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/tgalal/yowsup/issues/1387#issuecomment-200185351

rami-dabain commented 8 years ago

https://github.com/tgalal/yowsup/issues/1384 not working neither the uodate for S60 nor Android

Anyone knows how to wireshark this?

kantorv commented 8 years ago

confirm, after yesterday reconnect can't login again, even after re-registration, the client isn't pulling secure keys as usual..

x23piracy commented 8 years ago

Hi,

same issue here, problem started yesterday. rereg doesnt help alsways not-authorized.

Regards X23

Fanawen commented 8 years ago

Me too! From yesterday I can't login again even after re-registration. This message appears:

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

There are so many issues to apply and patch that it is complicated to understand how we get yowsup work again.

Can anyone explain us how to get work again step by step in a easy way?

x23piracy commented 8 years ago

Hi,

maybe we need to change ENV from S40 (Symbian) permanently to Android instead of only for regis? Anyone tried to change ENV to Android?

Regards X23

rami-dabain commented 8 years ago

Yes, it works for registration, you get the password and stuff, but once you try to login you get not authed

Kind regards , Rami Dabain

On Wed, Mar 23, 2016 at 9:50 AM, x23piracy notifications@github.com wrote:

Hi,

maybe we need to change ENV from S40 (Symbian) permanently to Android instead of only for regis? Anyone tried to change ENV to Android?

Regards X23

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/tgalal/yowsup/issues/1387#issuecomment-200252411

x23piracy commented 8 years ago

Hi,

means u tried to logon both with symbian and android and it does not work? What a shame i manage 2 soccer groups with the bot, now i have a lot of work to manage them manually again... argh

Regards X23

rami-dabain commented 8 years ago

indeed, tried to login and register with both, tried all possible combination of env values as well. the only thing that worked is registration with android, but failed login

Kind regards , Rami Dabain

On Wed, Mar 23, 2016 at 9:53 AM, x23piracy notifications@github.com wrote:

Hi,

means u tried to logon both with symbian and android and it does not work?

Regards X23

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/tgalal/yowsup/issues/1387#issuecomment-200253907

jlguardi commented 8 years ago

Update env_s40 with the token used in #1385 and it works without re-registering.

Fanawen commented 8 years ago

jlguardi:

I made those changes from 1385 and It doesn't work.

Also, I've downloaded your S40_2.13.39 brach and installed, but it also doesn't work

I'm lost.

k-freeman commented 8 years ago

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

status: fail reason: old_version

for me when trying to register. therefore, i think the environment keys have to be updated (?)

x23piracy commented 8 years ago

Hi,

lets say the env keys have to be updated howto get them? Wireshark?

Regards X23

rami-dabain commented 8 years ago

My fear is that the whole protocol will need update. I hate whatsapp

Kind regards , Rami Dabain

On Wed, Mar 23, 2016 at 10:22 AM, x23piracy notifications@github.com wrote:

Hi,

lets say the env keys have to be updated howto get them? Wireshark?

Regards X23

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/tgalal/yowsup/issues/1387#issuecomment-200264678

x23piracy commented 8 years ago

Well they don't like us... unofficial api users :D

rami-dabain commented 8 years ago

I really can't find the logic they use, what would be the difference if using the "official" or non-official ? i believe the service is measured by how it works, not by what client it works under!!! unless they have something nasty coming along in the client (like facebook app ... i uninstalled it because it have a lot of unnecessary permissions and access to data it should not have!)

If whatsapp (aka facebook) is forcing everyone to use their official client 9oh the nokia and BB don't have features they want ... aka: can't help with data mining)

I say whatsapp is going down, people will hate it the same way they hate facebook messenger, facebook just ruining it ... switching to telegram and to hell with whatsapp

Kind regards , Rami Dabain

On Wed, Mar 23, 2016 at 10:25 AM, x23piracy notifications@github.com wrote:

Well they don't like use unofficial api users :D

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/tgalal/yowsup/issues/1387#issuecomment-200265535

Fanawen commented 8 years ago

I've tried everything you've said but yowsup doesn't work. Still get the auth error.

Can anyone give us a zip file with all the changes already made to install? We're lost!

relima commented 8 years ago

My bot has also been blocked. I managed to get a new authentication code by updating yowsup´s protocol to the latest commit (you can download a package that includes all needed commits from https://github.com/jlguardi/yowsup/tree/Android_2.12.440 ).

Yet, whenever I try to login using yowsup I get blocked (AuthError: not-authorized).

k-freeman commented 8 years ago

you can switch to the android environment. it works for me.

here: https://github.com/tgalal/yowsup/pull/1336/commits/8ab14dc8a1bd4d7d1776111ec39f7e08184214d2

greetings.

rami-dabain commented 8 years ago

works as in registration? or login? or both?

Kind regards , Rami Dabain

On Wed, Mar 23, 2016 at 10:51 AM, Kevin Freeman notifications@github.com wrote:

you can switch to the android environment. it works for me.

here: 8ab14dc https://github.com/tgalal/yowsup/pull/1336/commits/8ab14dc8a1bd4d7d1776111ec39f7e08184214d2

greetings.

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/tgalal/yowsup/issues/1387#issuecomment-200273090

k-freeman commented 8 years ago

for me this fixes registration as well as login.

rami-dabain commented 8 years ago

well I guess you haven't tried, because most of us are on that version currently

Kind regards , Rami Dabain

On Wed, Mar 23, 2016 at 10:54 AM, Kevin Freeman notifications@github.com wrote:

for me this fixes registration as well as login.

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/tgalal/yowsup/issues/1387#issuecomment-200273731

k-freeman commented 8 years ago

i am not spreading rumors, it works for me. when i write my bot, he reads the message and answers to my requests. what i did was changing from the s40 env to android env as well as changing it in the init of the yowsup cli demo, which i am using.

greetings.

rami-dabain commented 8 years ago

The problem with what you are saying is that i did that already a week ago and it was working fine until last night. You might want to check your bot? restart it!

Kind regards , Rami Dabain

On Wed, Mar 23, 2016 at 11:01 AM, Kevin Freeman notifications@github.com wrote:

i am not spreading rumors, it works for me. when i write my bot, he reads the message and answers to my requests. what i did was changing from the s40 env to android env as well as changing it in the init of the yowsup cli demo, which i am using.

greetings.

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/tgalal/yowsup/issues/1387#issuecomment-200276233

techcanvas commented 8 years ago

Do i expect any update on this

x23piracy commented 8 years ago

@k-freeman still working after restart?

Regards X23

fredvey commented 8 years ago

Same problem here: Auth Error, reason not-authorized :/ Tried to android env , update env to new nokia settings and nothing work again :/

k-freeman commented 8 years ago

@x23piracy i tried several changes now, after deleting and recreating my axolotl db my messages were encrypted, even without using encryption. i receive messages, i am able to register, able to send message but not read the decrypted content of the received messages...

cfenollosa commented 8 years ago

Same here. Had to re-register, and the process went well, but now I can't auth:

  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup/layers/auth/layer_authentication.py", line 77, in handleFailure
    raise AuthError(nodeEntity.getReason())
yowsup.layers.auth.autherror.AuthError: not-authorized

I've updated both envs with new tokens, and tried both S40 and Android, with no luck.

rami-dabain commented 8 years ago

register with android, login with S40

Kind regards , Rami Dabain

On Wed, Mar 23, 2016 at 11:53 AM, Carlos Fenollosa <notifications@github.com

wrote:

Same here. Had to re-register, and the process went well, but now I can't auth:

File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup/layers/auth/layer_authentication.py", line 77, in handleFailure raise AuthError(nodeEntity.getReason()) yowsup.layers.auth.autherror.AuthError: not-authorized

I've updated both envs with new tokens, and tried both S40 and Android, with no luck.

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/tgalal/yowsup/issues/1387#issuecomment-200294827

x23piracy commented 8 years ago

@rami-dabain that works for you? I don't think so because i never changed env away from symbian, and reregistered today with android device while getting pw with pw.apk.

And i cannot login.

Regards X23

relima commented 8 years ago

@rami-dabain , please, would you be so kind as to detail the steps you have taken (such as the files and variables changed)? I managed to get it to register, but when using the password provided, it gives me not auth.

rami-dabain commented 8 years ago

after you register, login with the following https://github.com/tgalal/yowsup/pull/1385

Kind regards , Rami Dabain

On Wed, Mar 23, 2016 at 12:10 PM, relima notifications@github.com wrote:

@rami-dabain https://github.com/rami-dabain , please, would you be so kind as to detail the steps you have taken (such as the files and variables changed)? I managed to get it to register, but when using the password provided, it gives me not auth.

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/tgalal/yowsup/issues/1387#issuecomment-200299153

connectnet commented 8 years ago

got it! Go to /yowsup/env/__init__.py and change: CURRENT_ENV = S40YowsupEnv() to CURRENT_ENV = AndroidYowsupEnv()`

x23piracy commented 8 years ago

Hi,

i changed that but i still get not authorized!

Regards X23

fredvey commented 8 years ago

@connectnet tried make this change but " Authentication Error: not-authorized" continue :/

x23piracy commented 8 years ago

@rami-dabain what exactly is the change in #1385 i don't understand?

Regards X23

x23piracy commented 8 years ago

Hi,

i tried both and in combination changing what @connectnet told us and what @rami-dabain suggested with #1385 but it does not work for me

Regards X23

eduardobento commented 8 years ago

I changed current env to Android, but the 'ERROR:yowsup.layers.axolotl.layer:No valid sessionsBad Mac!' comming from many contats. Any suggestions?

jlguardi commented 8 years ago

@eduardobento @yniv Bad Mac can be solved sending a message from this line to the recipient. I'll see for other solution.

fredvey commented 8 years ago

Tried the changes from #1385 , #1386 and continue with Authentication Error: not-authorized

yniv commented 8 years ago

@jlguardi we need to think about something automatic that does this, because i have many numbers who get bad mac

yniv commented 8 years ago

@jlguardi also when sending images there's still a problem. i think this is the main cause of the other problems because the message counter in the axolotl gets messed

x23piracy commented 8 years ago

Hi,

is anyone here whos has it working again and can tell us what exactly is needed for make it run again?

Regards X23

rami-dabain commented 8 years ago

apparently we need to rewrite a lot in the code to make it work, anyone have wireshark? my linux machine is broken, and macs are not built for this kind of thing

Kind regards , Rami Dabain

On Wed, Mar 23, 2016 at 1:11 PM, x23piracy notifications@github.com wrote:

Hi,

is anyone here whos has it working again and can tell us what exactly is needed for make it run again?

Regards X23

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/tgalal/yowsup/issues/1387#issuecomment-200324188

yniv commented 8 years ago

looks like @mgp25 's chat-api is still working. maybe someone can port the solution from there...

medinamarcos commented 8 years ago

I am also having the same problem