tgalal / yowsup

The WhatsApp lib
GNU General Public License v3.0
7.03k 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?

davydj commented 8 years ago

ao executar o comando “yowsup-cli demos -s 55xxxxxxxxxx “teste” -c /etc/zap.conf” trás a saída “Authentication Error: not-authorized”,

techcanvas commented 8 years ago

Any resolution for auth error

On Wednesday, 23 March 2016, davydj notifications@github.com wrote:

ao executar o comando “yowsup-cli demos -s 55xxxxxxxxxx “teste” -c /etc/zap.conf” trás a saída “Authentication Error: not-authorized”,

— 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-200333528

Regards

Neeraj Goel +91 7838872866

relima commented 8 years ago

@neeraj360 @x23piracy I managed to fix the auth error by merging most of the past 6 PRs. @jlguardi past fixes were most helpful in that regard. However, after logging in, we still have problems with acks and whatnot. So the problem has not yet been fully solved.

cfenollosa commented 8 years ago

I am now able to login and send messages using the CLI client, but I can't receive any. This is super weird.

cfenollosa commented 8 years ago

Maybe the phone number is shadowbanned of some sort? Other numbers seem to work well.

But I can connect successfully and send messages, it makes no sense...

jlguardi commented 8 years ago

@cfenollosa enable debug and post logs.

cfenollosa commented 8 years ago

Here it is:

I have many un-acked messages, but I'm not receiving ack requests. Is there some way I can clear that?

Edit: clarification - I didn't get those messages thus I can't sent an ack. However I know the messages exist because I sent them from another phone I control. The result is that I can't receive any messages, but I can send them via the CLI, and I get acks for those. Weird.

Also I get pings, so I don't get disconnected

(env)[553] 16:03:58 S host:~/whatsbot$ env/bin/yowsup-cli demos -d -c ~/.yowsup/34688929664/config -y
DEBUG:yowsup.stacks.yowstack:Initializing stack
DEBUG:yowsup.stacks.yowstack:Constructed Network Layer
DEBUG:yowsup.stacks.yowstack:Constructed Stanza Regulator Layer
DEBUG:yowsup.stacks.yowstack:Constructed Crypt Layer
DEBUG:yowsup.stacks.yowstack:Constructed Coder Layer
DEBUG:yowsup.stacks.yowstack:Constructed Logger Layer
DEBUG:yowsup.stacks.yowstack:Constructed Axolotl Layer
DEBUG:yowsup.stacks.yowstack:Constructed Authentication Layer - Messages Layer - Receipt Layer - Ack Layer - Presence Layer - Ib Layer - Iq Layer - notif
ication Ib Layer - Iq Layer - Chatstate Layer - call Layer - Groups Iq Layer - Media Layer - Privacy Layer - Profiles Layer
DEBUG:yowsup.stacks.yowstack:Constructed CLI Interface Layer
Yowsup Cli client
==================
Type /help for available commands

[offline]:/L
DEBUG:yowsup.layers.network.layer:Connecting to e14.whatsapp.net:443
DEBUG:yowsup.layers.logger.layer:tx:
<stream:features>
<readreceipts>
</readreceipts>
<groups_v2>
</groups_v2>
<privacy>
</privacy>
<presence>
</presence>
</stream:features>

DEBUG:yowsup.layers.logger.layer:tx:
<auth passive="false" user="34688929664" mechanism="WAUTH-2">
çðXÛBÍ?{½3F=w4ýÐWÜ0Sï¤|zÇñxþA¨/
HEX:e7f05819db957808428ccd3f1f7b9ebd33463d773486fdd05789dc3053ef0f8ca47c7ac701f17800fe1f41a82f
</auth>

DEBUG:yowsup.layers.logger.layer:rx:
<stream:features>
</stream:features>

DEBUG:yowsup.layers.logger.layer:rx:
<success status="active" kind="free" creation="1454085784" expiration="4444444444" props="4" t="1458745450">
4Ó6>ÝÌ¢E+)EN>wý
HEX:347fd3361c3e1698ddcca2452b2945824e3e77fd
</success>

DEBUG:yowsup.layers.protocol_iq.layer:starting ping thread.
Auth: Logged in!
[connected]:DEBUG:yowsup.layers.logger.layer:rx:
<ib from="s.whatsapp.net">
<dirty timestamp="1458745450" type="groups">
</dirty>
</ib>

DEBUG:yowsup.layers.logger.layer:rx:
<receipt participant="34620756395@s.whatsapp.net" t="1458744069" from="34639057486-1300625051@g.us" offline="3" type="read" id="1458744068-1">
</receipt>

DEBUG:yowsup.layers.logger.layer:tx:
<ack to="34639057486-1300625051@g.us" type="read" id="1458744068-1" class="receipt">
</ack>

DEBUG:yowsup.layers.logger.layer:rx:
<receipt participant="34651618399@s.whatsapp.net" offline="3" from="34639057486-1300625051@g.us" id="1458744068-1" t="1458744115">
</receipt>

DEBUG:yowsup.layers.logger.layer:tx:
<ack to="34639057486-1300625051@g.us" id="1458744068-1" class="receipt">
</ack>

DEBUG:yowsup.layers.logger.layer:rx:
<receipt participant="34653791309@s.whatsapp.net" t="1458744154" from="34639057486-1300625051@g.us" offline="3" type="read" id="1458744068-1">
</receipt>

DEBUG:yowsup.layers.logger.layer:tx:
<ack to="34639057486-1300625051@g.us" type="read" id="1458744068-1" class="receipt">
</ack>

DEBUG:yowsup.layers.logger.layer:rx:
<receipt participant="34652578090@s.whatsapp.net" offline="3" from="34639057486-1300625051@g.us" id="1458744068-1" t="1458744173">
</receipt>

DEBUG:yowsup.layers.logger.layer:tx:
<ack to="34639057486-1300625051@g.us" id="1458744068-1" class="receipt">
</ack>

[connected]:
[connected]:
relima commented 8 years ago

@cfenollosa @jlguardi I am having the exact same issue.

connectnet commented 8 years ago

After changing the /yowsup/env/__init__.py and calling the string with the full path it works fine: /home/pi/yowsup/yowsup-cli demos -c /home/pi/yowsup/config -s 44123456789 "My Message"

jlguardi commented 8 years ago

@cfenollosa I cant see the incomming messages!

cfenollosa commented 8 years ago

Yeah, that's exactly the problem. Yowsup can't see the messages for some reason. Can this be a new way of banning people? It strikes me as very weird because it's not blocking me from sending messages

cfenollosa commented 8 years ago

An update,

The number is not banned. I tried to use it with the official client on a cellphone and it works well. So at some point yowsup is failing to receive messages...

jodersus commented 8 years ago

I have the same issue on one number, but not on another that is using the exact same library (commented in #1389), so I am guessing it has to do with axolotl layer (or privacy?) rejecting it.

giulianopoggi commented 8 years ago

Using old axolotl keys results in dropped messages when changing phones #1044

relima commented 8 years ago

@giulianopoggi I have tried deleting it many times and it has not fixed the issue.

cfenollosa commented 8 years ago

@Exactly. This is happening only on 1 of my 3 phones, and deleting files does not work

Edit: I also re-registered the phone with a new password and @jlguardi code (s40 env), but no luck

Edit2: At some point I managed to get some messages by disabling Axotl layer on the stack, but this does not work anymore

Edit3: By restoring an old axolotl.db I managed to receive 2 more messages, I am still missing about ~20 more. This is driving me crazy!

techcanvas commented 8 years ago

No Whatsapp alternate app working currently -Disa is showing same errow auth failed

cfenollosa commented 8 years ago

Ok, every time I log in, Whatsapp sends me 4 read receipts. IN THEORY yowsup is sending an ack for each.

However, on every login, I get the same 4 receipts, which is leading me to think that the acks are not being received, thus Whatsapp is labeling me as a "bad behaving client" and not sending any more data until I can ack their first receipts.

The CLI client is indeed sending the ACK, but it may not be reaching Whatsapp's servers for some reason.

By the way, I'm using @jlguardi latest code. @relima are you using this one too?

TL;DR: It seems that some layer is unable to send ACKs to the Whatsapp servers (or the servers do not understand those ACKs/, so the client is temporarily ignored.

relima commented 8 years ago

@cfenollosa Yes. we are exactly on the same page.

shedokan commented 8 years ago

Here's a fix for the "not-authorized" error:

from yowsup.env.env_s40 import S40YowsupEnv
S40YowsupEnv._VERSION = '2.13.39'
S40YowsupEnv._TOKEN_STRING = 'PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk{phone}'

But I am experiencing the same bug as @cfenollosa

cfenollosa commented 8 years ago

@relima could you try again? I didn't change anything in the code/libs and I'm now getting this error:

DEBUG:yowsup.layers.logger.layer:tx:
<auth passive="false" user="34688929664" mechanism="WAUTH-2">
ÓT÷Bv\ype="skmsg" v="2">
àÌNð–ªÄÀT
        ª1Ìa1¾e¬ÁNØþòHØo˜6«c¾Ú†š+Šíâ»%̀«Çëðw“õAg¥†VeɬO™X|Œ¯ÎlÖâÄúŽH§Þ‚²¶k’죮ÝE6IôÔwJ']ÛNòŽ×á 
                                                                                                 `G1~KãB_앆3,¼yÐÕ´”ãÆ ”¢û¹!îRHgŠõúVmña÷À ^9•2¢´–ÚòOyÍ ç$sS›gáN¾Üãdlôӊ#%=E²¼~D5Lm€E5t­—Wˆaýå?‡$ž*ۆ1¡›¦!iôQÙзö^µj”ár?†kì[םYÜ}ªÒ¹ÉðkWg®m#ipmj7æà*øËwáhÙq&Î9Ï¥±±»ÿìñ Fgé
HEX:330890e0cc4e10011af00196aac4c054080baa31cc6131be65acc14e1cd8fef248d86f9836ab63beda869a2b1a8aed19e23e08bb25cd80abc7ebf0117793f51c4167a510865665c9ac184f99587c8cafce6cd6e2c4fa8e48a7de82b2b66b92eca3aedd451e3649f4d4774a275ddb4e8f01f28ed7e1a00c6047317e4be3425fec9586332cbc79d01ec395b494e3c61aa094a2fbb921ee5248678af5fa566df161f7c0a05e399532a2b496da11f24f79cd0e20e7240073539b67e14ebedce3646cf4d38a23253d45b2bc7e44354c6d80453574ad037f9757880161fd02e51a3f87249e2adb8631a19ba62169f451d9d003b7f65eb56a7f941104e1723f866bec5bd79d599cdc831a7daa07d2b917c9f06b5767ae6d2369706d6a37e69582e02af81b1dcb77e1680f9ad97126ce39cfa5b1b1bbff9cecf1a04667e987
</enc>
</message>

Traceback (most recent call last):
  File "env/bin/yowsup-cli", line 4, in <module>
    __import__('pkg_resources').run_script('yowsup2==2.4.48', 'yowsup-cli')
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/pkg_resources.py", line 534, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/pkg_resources.py", line 1445, in run_script
    exec(script_code, namespace, namespace)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/EGG-INFO/scripts/yowsup-cli", line 323, in <module>

  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/EGG-INFO/scripts/yowsup-cli", line 227, in process

  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/EGG-INFO/scripts/yowsup-cli", line 255, in startCmdline

  File "build/bdist.linux-x86_64/egg/yowsup/demos/cli/stack.py", line 25, in start
  File "build/bdist.linux-x86_64/egg/yowsup/stacks/yowstack.py", line 187, in loop
  File "/usr/lib/python2.7/asyncore.py", line 216, in loop
    poll_fun(timeout, map)
  File "/usr/lib/python2.7/asyncore.py", line 156, in poll
    read(obj)
  File "/usr/lib/python2.7/asyncore.py", line 87, in read
    obj.handle_error()
  File "/usr/lib/python2.7/asyncore.py", line 83, in read
    obj.handle_read_event()
  File "/usr/lib/python2.7/asyncore.py", line 449, in handle_read_event
    self.handle_read()
  File "build/bdist.linux-x86_64/egg/yowsup/layers/network/layer.py", line 86, in handle_read
  File "build/bdist.linux-x86_64/egg/yowsup/layers/network/layer.py", line 94, in receive
  File "build/bdist.linux-x86_64/egg/yowsup/layers/__init__.py", line 59, in toUpper
  File "build/bdist.linux-x86_64/egg/yowsup/layers/stanzaregulator/layer.py", line 28, in receive
  File "build/bdist.linux-x86_64/egg/yowsup/layers/stanzaregulator/layer.py", line 48, in processReceived
  File "build/bdist.linux-x86_64/egg/yowsup/layers/__init__.py", line 59, in toUpper
  File "build/bdist.linux-x86_64/egg/yowsup/layers/auth/layer_crypt.py", line 63, in receive
  File "build/bdist.linux-x86_64/egg/yowsup/layers/__init__.py", line 59, in toUpper
  File "build/bdist.linux-x86_64/egg/yowsup/layers/coder/layer.py", line 35, in receive
  File "build/bdist.linux-x86_64/egg/yowsup/layers/__init__.py", line 59, in toUpper
  File "build/bdist.linux-x86_64/egg/yowsup/layers/logger/layer.py", line 14, in receive
  File "build/bdist.linux-x86_64/egg/yowsup/layers/__init__.py", line 59, in toUpper
  File "build/bdist.linux-x86_64/egg/yowsup/layers/axolotl/layer.py", line 118, in receive
  File "build/bdist.linux-x86_64/egg/yowsup/layers/axolotl/layer.py", line 140, in onMessage
  File "build/bdist.linux-x86_64/egg/yowsup/layers/axolotl/layer.py", line 225, in handleEncMessage
  File "build/bdist.linux-x86_64/egg/yowsup/layers/axolotl/layer.py", line 271, in handleWhisperMessage
  File "build/bdist.linux-x86_64/egg/yowsup/layers/axolotl/protocolentities/message_encrypted.py", line 53, in fromProtocolTreeNode
  File "build/bdist.linux-x86_64/egg/yowsup/layers/axolotl/protocolentities/message_encrypted.py", line 24, in setEncProps
AssertionError: msg

Edit: deleting axolotl.db and re-running the CLI client drops the same error but, I believe, for a different reason:

DEBUG:yowsup.layers.logger.layer:rx:
<stream:features>
</stream:features>

DEBUG:yowsup.layers.logger.layer:rx:
<success status="active" kind="free" creation="1454085784" expiration="4444444444" props="4" t="1458753847">
vàûU|ë¶f<2%4íî%MWf
HEX:76e0fb557cebb6663c32922534ed02ee254d5766
</success>

DEBUG:yowsup.layers.protocol_iq.layer:starting ping thread.
Auth: Logged in!
[connected]:DEBUG:yowsup.layers.logger.layer:rx:
<message participant="34651618399@s.whatsapp.net" t="1458749697" from="34639057486-1300625051@g.us" offline="3" type="text" id="C9CAA8B96E497AEF7C0199F1DFA871" notify="carlos">
<enc type="skmsg" v="2">
àÌNð–ªÄÀT
        ª1Ìa1¾e¬ÁNØþòHØo˜6«c¾Ú†š+Šíâ»%̀«Çëðw“õAg¥†VeɬO™X|Œ¯ÎlÖâÄúŽH§Þ‚²¶k’죮ÝE6IôÔwJ']ÛNòŽ×á 
                                                                                                 `G1~KãB_앆3,¼yÐÕ´”ãÆ ”¢û¹!îRHgŠõúVmña÷À ^9•2¢´–ÚòOyÍ ç$sS›gáN¾Üãdlôӊ#%=E²¼~D5Lm€E5t­—Wˆaýå?‡$ž*ۆ1¡›¦!iôQÙзö^µj”ár?†kì[םYÜ}ªÒ¹ÉðkWg®m#ipmj7æà*øËwáhÙq&Î9Ï¥±±»ÿìñ Fgé
HEX:330890e0cc4e10011af00196aac4c054080baa31cc6131be65acc14e1cd8fef248d86f9836ab63beda869a2b1a8aed19e23e08bb25cd80abc7ebf0117793f51c4167a510865665c9ac184f99587c8cafce6cd6e2c4fa8e48a7de82b2b66b92eca3aedd451e3649f4d4774a275ddb4e8f01f28ed7e1a00c6047317e4be3425fec9586332cbc79d01ec395b494e3c61aa094a2fbb921ee5248678af5fa566df161f7c0a05e399532a2b496da11f24f79cd0e20e7240073539b67e14ebedce3646cf4d38a23253d45b2bc7e44354c6d80453574ad037f9757880161fd02e51a3f87249e2adb8631a19ba62169f451d9d003b7f65eb56a7f941104e1723f866bec5bd79d599cdc831a7daa07d2b917c9f06b5767ae6d2369706d6a37e69582e02af81b1dcb77e1680f9ad97126ce39cfa5b1b1bbff9cecf1a04667e987
</enc>
</message>

Traceback (most recent call last):
  File "env/bin/yowsup-cli", line 4, in <module>
    __import__('pkg_resources').run_script('yowsup2==2.4.48', 'yowsup-cli')
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/pkg_resources.py", line 534, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/pkg_resources.py", line 1445, in run_script
    exec(script_code, namespace, namespace)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/EGG-INFO/scripts/yowsup-cli", line 323, in <module>

  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/EGG-INFO/scripts/yowsup-cli", line 227, in process

  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/EGG-INFO/scripts/yowsup-cli", line 255, in startCmdline

  File "build/bdist.linux-x86_64/egg/yowsup/demos/cli/stack.py", line 25, in start
  File "build/bdist.linux-x86_64/egg/yowsup/stacks/yowstack.py", line 187, in loop
  File "/usr/lib/python2.7/asyncore.py", line 216, in loop
    poll_fun(timeout, map)
  File "/usr/lib/python2.7/asyncore.py", line 156, in poll
    read(obj)
  File "/usr/lib/python2.7/asyncore.py", line 87, in read
    obj.handle_error()
  File "/usr/lib/python2.7/asyncore.py", line 83, in read
    obj.handle_read_event()
  File "/usr/lib/python2.7/asyncore.py", line 449, in handle_read_event
    self.handle_read()
  File "build/bdist.linux-x86_64/egg/yowsup/layers/network/layer.py", line 86, in handle_read
  File "build/bdist.linux-x86_64/egg/yowsup/layers/network/layer.py", line 94, in receive
  File "build/bdist.linux-x86_64/egg/yowsup/layers/__init__.py", line 59, in toUpper
  File "build/bdist.linux-x86_64/egg/yowsup/layers/stanzaregulator/layer.py", line 28, in receive
  File "build/bdist.linux-x86_64/egg/yowsup/layers/stanzaregulator/layer.py", line 48, in processReceived
  File "build/bdist.linux-x86_64/egg/yowsup/layers/__init__.py", line 59, in toUpper
  File "build/bdist.linux-x86_64/egg/yowsup/layers/auth/layer_crypt.py", line 63, in receive
  File "build/bdist.linux-x86_64/egg/yowsup/layers/__init__.py", line 59, in toUpper
  File "build/bdist.linux-x86_64/egg/yowsup/layers/coder/layer.py", line 35, in receive
  File "build/bdist.linux-x86_64/egg/yowsup/layers/__init__.py", line 59, in toUpper
  File "build/bdist.linux-x86_64/egg/yowsup/layers/logger/layer.py", line 14, in receive
  File "build/bdist.linux-x86_64/egg/yowsup/layers/__init__.py", line 59, in toUpper
  File "build/bdist.linux-x86_64/egg/yowsup/layers/axolotl/layer.py", line 118, in receive
  File "build/bdist.linux-x86_64/egg/yowsup/layers/axolotl/layer.py", line 140, in onMessage
  File "build/bdist.linux-x86_64/egg/yowsup/layers/axolotl/layer.py", line 225, in handleEncMessage
  File "build/bdist.linux-x86_64/egg/yowsup/layers/axolotl/layer.py", line 271, in handleWhisperMessage
  File "build/bdist.linux-x86_64/egg/yowsup/layers/axolotl/protocolentities/message_encrypted.py", line 53, in fromProtocolTreeNode
  File "build/bdist.linux-x86_64/egg/yowsup/layers/axolotl/protocolentities/message_encrypted.py", line 24, in setEncProps
AssertionError: msg
relima commented 8 years ago

@cfenollosa you are right! something has changed.. my bot worked for a couple of seconds, sent a lot of messages and then had a seizure and died. this are its last words:

▒▒ HEX:9d861e tK▒W▒▒3▒i▒▒-3▒▒▒▒`ё▒.▒Bv▒▒\qQ_ HEX:744bdd57d6f6338669dedc2d33a5e5f5ea60d191e82ec0427699ce5c7151145f ▒v҂p▒▒▒▒▒Շ▒$▒)޼▒▒;▒:['+Y▒`▒▒+▒Cv▒|▒Ry▒5^▒B▒J▒▒▒PG▒▒▒8 HEX:be76d282709988f816cc1ea0d587b124d829debcc7f43bed3a5b272b591fe28f60e4e52be04376a17cd75279fc355ed442f04ab516f3cc50479ac1b702bf3802

Unexpected Exception: 'NoneType' object has no attribute 'getChild' Traceback (most recent call last): File "server.py", line 38, in start self.stack.loop(timeout=0.5, discrete=0.5) File "/home/bot/yowsup/stacks/yowstack.py", line 187, in loop asyncore.loop(_args, *_kwargs) File "/usr/lib/python2.7/asyncore.py", line 216, in loop poll_fun(timeout, map) File "/usr/lib/python2.7/asyncore.py", line 156, in poll read(obj) File "/usr/lib/python2.7/asyncore.py", line 87, in read obj.handle_error() File "/usr/lib/python2.7/asyncore.py", line 83, in read obj.handle_read_event() File "/usr/lib/python2.7/asyncore.py", line 449, in handle_read_event self.handle_read() File "/home/bot/yowsup/layers/network/layer.py", line 86, in handle_read self.receive(data) File "/home/bot/yowsup/layers/network/layer.py", line 94, in receive self.toUpper(data) File "/home/bot/yowsup/layers/init.py", line 59, in toUpper self.upper.receive(data) File "/home/bot/yowsup/layers/stanzaregulator/layer.py", line 28, in receive self.processReceived() File "/home/mestre/bot/yowsup/layers/stanzaregulator/layer.py", line 48, in processReceived self.toUpper(oneMessageData) File "/home/bot/yowsup/layers/__init.py", line 59, in toUpper self.upper.receive(data) File "/home/bot/yowsup/layers/auth/layer_crypt.py", line 63, in receive self.toUpper(payload) File "/home/bot/yowsup/layers/__init.py", line 59, in toUpper self.upper.receive(data) File "/home/bot/yowsup/layers/coder/layer.py", line 35, in receive self.toUpper(node) File "/home/bot/yowsup/layers/__init.py", line 59, in toUpper self.upper.receive(data) File "/home/bot/yowsup/layers/logger/layer.py", line 14, in receive self.toUpper(data) File "/home/bot/yowsup/layers/__init.py", line 59, in toUpper self.upper.receive(data) File "/home/bot/yowsup/layers/axolotl/layer.py", line 115, in receive if not self.processIqRegistry(protocolTreeNode): File "/home/mestre/bot/yowsup/layers/__init.py", line 136, in processIqRegistry successClbk(protocolTreeNode, originalIq) File "/home/bot/yowsup/layers/axolotl/layer.py", line 175, in self._sendIq(entity, lambda a, b: self.onGetKeysResult(a, b, self.processPendingMessages), self.onGetKeysError) File "/home/mestre/bot/yowsup/layers/axolotl/layer.py", line 348, in onGetKeysResult entity = ResultGetKeysIqProtocolEntity.fromProtocolTreeNode(resultNode) File "/home/mestre/bot/yowsup/layers/axolotl/protocolentities/iq_keys_get_result.py", line 88, in fromProtocolTreeNode preKeyId = ResultGetKeysIqProtocolEntity._bytesToInt(preKeyNode.getChild("id").getData()) AttributeError: 'NoneType' object has no attribute 'getChild'

relima commented 8 years ago

it seems now this problem has nothing to do with auth error, but with No support for receiving Image messages with yowsup #1394

relima commented 8 years ago

Forget that. Now I am back at AuthError: not-authorized

File "/home/mestre/bot/yowsup/layers/init.py", line 59, in toUpper self.upper.receive(data) File "/home/mestre/bot/yowsup/layers/__init.py", line 169, in receive s.receive(data) File "/home/mestre/bot/yowsup/layers/init.py", line 105, in receive recv(node) File "/home/mestre/bot/yowsup/layers/auth/layer_authentication.py", line 78, in handleFailure raise AuthError(nodeEntity.getReason()) AuthError: not-authorized

DEBUG:

rx:

E$▒>▒▒▒▒-▒▒0ַ▒▒Jئ▒ HEX:4524993ec3f8d6d42d97b930d6b7ede94ad8a6f5

tx:

&U)▒▒Jd▒#▒d▒ k▒Â▒▒▒G▒.▒▒ya▒▒▒}X4׭▒▒ HEX:0926065529f7f24a64119b23faa711640fff0a6bfbc382b295bb47e02e6d0811e4c67961aaa7139e7d5834d7adfbc3

rx: failure> not-authorized> /not-authorized> ./failure>

cfenollosa commented 8 years ago

Using @jlguardi's new master branch, I managed to get some of the "missing" messages, but it breaks when receiving an encrypted group message:

  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/axolotl/protocolentities/message_encrypted.py", line 24, in setEncProps
    assert encType in "pkmsg", "msg"
AssertionError: msg

Disabling encryption only changes the error for another:

  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/protocol_messages/protocolentities/message_text.py", line 38, in fromProtocolTreeNode
    entity.setBody(node.getChild("body").getData())
AttributeError: 'NoneType' object has no attribute 'getData'

Did you manage to solve this, @relima ?

sowerkoku commented 8 years ago

Solucion parcial, modifiquen estos dos archivos:

yowsup/env/env_android.py

_VERSION = "2.12.xxx"

_VERSION = "2.12.510"

/yowsup/env/__init__.py

CURRENT_ENV = S40YowsupEnv()

CURRENT_ENV = AndroidYowsupEnv()

esto por ahora funciona solo para el envio de mensajes con numeros ya registrados.

disfruten!! ;)

tawanda commented 8 years ago

Translation of @sowerkoku's statement, dont know why he is not using english when everyone here is working together in a common language to fix this

partial solution, modify these two files:

yowsup / env / env_android.py

_VERSION = "2.12.xxx"

_VERSION = "2.12.510"

/yowsup/env/__init__.py

CURRENT_ENV = S40YowsupEnv ()

CURRENT_ENV = AndroidYowsupEnv ()

this for now it works only for sending messages with numbers already registered. enjoy !! ;)

k-freeman commented 8 years ago

@tawanda just fork https://github.com/jlguardi/yowsup . this version will give you everything except group messages, as they are using a new kind of encryption i think (skmsg and not pkmsg) greetings

tawanda commented 8 years ago

Thanks @k-freeman

rami-dabain commented 8 years ago

is the registration fixed ? On Mar 25, 2016 9:27 AM, "Tawanda Minya" notifications@github.com wrote:

Thanks @k-freeman https://github.com/k-freeman

— 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-201198178

tawanda commented 8 years ago

@rami-dabain you can use my branch in a virtual env for registration

git+https://github.com/tawanda/yowsup.git#egg=yowsup

then use

https://github.com/jlguardi/yowsup.git

for sending

rami-dabain commented 8 years ago

is it working? because i have same nokia settings and it gives me "temporarily un available" after receiving the sms... thats for 20 simcards ... :'(

k-freeman commented 8 years ago

@rami-dabain i never had to re-register. but i think the registration is working on this branch. let me quickly test it:

$ python2 yowsup-cli registration -C 49 -p 491713636363 -r sms INFO:yowsup.common.http.warequest:{"status":"sent","length":6,"method":"sms","retry_after":192,"sms_wait":192,"voice_wait":65}

status: sent retry_after: 192 length: 6 method: sms

seems like it works, but just tried a "random number". however, just use your login credentials from before, works like a charm for me (except group messages of course).

greetings

btw. it does not only depend on the nokia settings from the branch of @jlguardi. check his commits or just fork/clone his repo and use it.

yniv commented 8 years ago

does @jlguardi 's branch fully support regular images?? (not group images)

jlguardi commented 8 years ago

@yniv not yet but we are in the way. In #1400 we are reporting each step (pls, don't SPAM this issue). We have made work but it isn't still integrated in the yowsup layers (we love to sleep three hours per day ;) )

rami-dabain commented 8 years ago

Kevin equesting an sms works fine, but registering does not. i receive the sms but cant register it/get the password

jlguardi commented 8 years ago

@rami-dabain Probably you IP is banned if you are registering 20 lines at de time. Change IP and try again.

rami-dabain commented 8 years ago

I have 12 servers. try only 3 cards from each IP ... i will try again laster today thanks

sowerkoku commented 8 years ago

@k-freeman

messages will have to go with the " moxie " (disable encryption E2E )

to send group messages should only add the option -M

example: ./yowsup-cli demos -M -c xx.config -y or ./yowsup-cli demos -M -c xx.config -s phone "message"

chenwayne commented 8 years ago

Any working solution for this now not-authorized problem now? and why there is a error with it: Implicit declaration of parallel layers in a tuple is deprecated, pass a YowParallelLayer instead

techcanvas commented 8 years ago

Its working fine ,but getting extra characters in message body

On Sunday, 27 March 2016, Wayne notifications@github.com wrote:

Any working solution for this now not-authorized problem now? and why there is a error with it: Implicit declaration of parallel layers in a tuple is deprecated, pass a YowParallelLayer instead

— 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-202000401

Regards

Neeraj Goel +91 7838872866

chenwayne commented 8 years ago

@neeraj360 Thanks so much. May I know which branch is working fine now? How do I deploy?

techcanvas commented 8 years ago

Hi wayne

i made below changes and its working fine with 2.48

Translation of @sowerkoku https://github.com/sowerkoku's statement,

partial solution, modify these two files:

yowsup / env / env_android.py

_VERSION = "2.12.xxx"

_VERSION = "2.12.510"

/yowsup/env/init.py

CURRENT_ENV = S40YowsupEnv ()

CURRENT_ENV = AndroidYowsupEnv ()

this for now it works only for sending messages with numbers already registered. enjoy !! ;)

On Sunday, 27 March 2016, Wayne notifications@github.com wrote:

@neeraj360 https://github.com/neeraj360 Thanks so much. May I know which branch is working fine now? How do I deploy?

— 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-202001596

Regards

Neeraj Goel +91 7838872866

chenwayne commented 8 years ago

@neeraj360 I tried the method you provided, and also tried reinstalling using Mr. jlguardi's master repo. But still got the same error message: "Implicit declaration of parallel layers in a tuple is deprecated, pass a YowParallelLayer instead"

thanks

Wayne

rami-dabain commented 8 years ago

paste your stack file here

sowerkoku commented 8 years ago

@chenwayne

tgalal uses the branch. https://github.com/tgalal/yowsup

and make these changes . It should work well.

as easy , it would change the version in the file: yousup/env/env_s40.py _VERSION = "2.13.39"

another option is, modify these two files:

yowsup/env/env_android.py

_VERSION = "2.12.xxx"

_VERSION = "2.12.510"

/yowsup/env/__init__.py

CURRENT_ENV = S40YowsupEnv ()

CURRENT_ENV = AndroidYowsupEnv ()

this for now it works only for sending messages with numbers already registered.

techcanvas commented 8 years ago

I dont why i am getting extra charcter in message body

On Sunday, 27 March 2016, sowerkoku notifications@github.com wrote:

@chenwayne https://github.com/chenwayne

tgalal uses the branch. https://github.com/tgalal/yowsup

and make these changes . It should work well.

as easy , it would change the version in the file: yousup/env/env_s40.py _VERSION = "2.13.39"

another option is, modify these two files:

yowsup/env/env_android.py

_VERSION = "2.12.xxx"

_VERSION = "2.12.510"

/yowsup/env/init.py

CURRENT_ENV = S40YowsupEnv ()

CURRENT_ENV = AndroidYowsupEnv ()

this for now it works only for sending messages with numbers already registered.

— 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-202077070

Regards

Neeraj Goel +91 7838872866

parag commented 8 years ago

Can you post message you are receiving here? Your message might be still padded. Also which version of python you are using? @neeraj360

sowerkoku commented 8 years ago

use git clone https://github.com/tgalal/yowsup.git

techcanvas commented 8 years ago

I am getting apple?????????????????? Or appleaaaaaaaaaaaaaaaa

Something lyk this

On Sunday, 27 March 2016, Parag Arora notifications@github.com wrote:

Can you post message you are receiving here? Your message might be still padded. Also which version of python you are using? @neeraj360 https://github.com/neeraj360

— 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-202079169

Regards

Neeraj Goel +91 7838872866