yowsup icon indicating copy to clipboard operation
yowsup copied to clipboard

Having problem sending message to group

Open eirmd opened this issue 9 years ago • 31 comments

Hello, anyone having problem sending message to group?

Sending message to the group with only 2 participants: Message received.

Sending message to the group with 23 participants: "Waiting for this message. This may take a while. Learn more."

Sending message to the group with 200 participants: yowsup-cli demos -c yowsup.config -s xxxxx-xxxxx Hello -E s40

yowsup-cli  v2.0.15
yowsup      v2.5.2

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


Traceback (most recent call last):
  File "/usr/local/bin/yowsup-cli", line 368, in <module>
    if not parser.process():
  File "/usr/local/bin/yowsup-cli", line 272, in process
    self.startSendClient()
  File "/usr/local/bin/yowsup-cli", line 324, in startSendClient
    stack.start()
  File "/usr/local/lib/python2.7/dist-packages/yowsup/demos/sendclient/stack.py", line 31, in start
    self.stack.loop()
  File "/usr/local/lib/python2.7/dist-packages/yowsup/stacks/yowstack.py", line 196, 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 "/usr/local/lib/python2.7/dist-packages/yowsup/layers/network/layer.py", line 102, in handle_read
    self.receive(data)
  File "/usr/local/lib/python2.7/dist-packages/yowsup/layers/network/layer.py", line 110, in receive
    self.toUpper(data)
  File "/usr/local/lib/python2.7/dist-packages/yowsup/layers/__init__.py", line 79, in toUpper
    self.__upper.receive(data)
  File "/usr/local/lib/python2.7/dist-packages/yowsup/layers/stanzaregulator/layer.py", line 29, in receive
    self.processReceived()
  File "/usr/local/lib/python2.7/dist-packages/yowsup/layers/stanzaregulator/layer.py", line 49, in processReceived
    self.toUpper(oneMessageData)
  File "/usr/local/lib/python2.7/dist-packages/yowsup/layers/__init__.py", line 79, in toUpper
    self.__upper.receive(data)
  File "/usr/local/lib/python2.7/dist-packages/yowsup/layers/auth/layer_crypt.py", line 65, in receive
    self.toUpper(payload)
  File "/usr/local/lib/python2.7/dist-packages/yowsup/layers/__init__.py", line 79, in toUpper
    self.__upper.receive(data)
  File "/usr/local/lib/python2.7/dist-packages/yowsup/layers/coder/layer.py", line 35, in receive
    self.toUpper(node)
  File "/usr/local/lib/python2.7/dist-packages/yowsup/layers/__init__.py", line 79, in toUpper
    self.__upper.receive(data)
  File "/usr/local/lib/python2.7/dist-packages/yowsup/layers/logger/layer.py", line 14, in receive
    self.toUpper(data)
  File "/usr/local/lib/python2.7/dist-packages/yowsup/layers/__init__.py", line 79, in toUpper
    self.__upper.receive(data)
  File "/usr/local/lib/python2.7/dist-packages/yowsup/layers/axolotl/layer_control.py", line 44, in receive
    self.toUpper(protocolTreeNode)
  File "/usr/local/lib/python2.7/dist-packages/yowsup/layers/__init__.py", line 79, in toUpper
    self.__upper.receive(data)
  File "/usr/local/lib/python2.7/dist-packages/yowsup/layers/__init__.py", line 194, in receive
    s.receive(data)
  File "/usr/local/lib/python2.7/dist-packages/yowsup/layers/axolotl/layer_send.py", line 64, in receive
    if not self.processIqRegistry(protocolTreeNode):
  File "/usr/local/lib/python2.7/dist-packages/yowsup/layers/__init__.py", line 161, in processIqRegistry
    successClbk(protocolTreeNode, originalIq)
  File "/usr/local/lib/python2.7/dist-packages/yowsup/layers/axolotl/layer_base.py", line 51, in onSuccess
    entity = ResultGetKeysIqProtocolEntity.fromProtocolTreeNode(resultNode)
  File "/usr/local/lib/python2.7/dist-packages/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'

With --moxie, INFO:yowsup.demos.sendclient.layer:Message sent No error, but cannot see the message: yowsup-cli demos -c yowsup.config -M -s xxxxx-xxxxx Hello -E s40

INFO:yowsup.demos.sendclient.layer:Message sent
yowsup-cli  v2.0.15
yowsup      v2.5.2

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



Yowsdown

Any idea guys? Thanks.

eirmd avatar Jul 21 '17 01:07 eirmd

The same problem with "Waiting for this message. This may take a while. Learn more." while sending to group

soyungenio avatar Jul 22 '17 10:07 soyungenio

For me the same problem with "Waiting for this message..." but also for a single destination number !! Not a group... Can you help me please! Thanks in advance! Marco

marcoblacks avatar Jul 26 '17 20:07 marcoblacks

Try to update the key, and if it's a single person sync the contact.

coolnickname avatar Jul 26 '17 21:07 coolnickname

I tried to delete .yowsup folder but it didn't help(:

soyungenio avatar Jul 27 '17 09:07 soyungenio

Have you try register and using different number?

eirmd avatar Jul 27 '17 11:07 eirmd

Yes, i tried

soyungenio avatar Jul 27 '17 14:07 soyungenio

i dont have problem sending to single person, or group with only 2 participants with short text. But its also happen when sending long message, "Waiting for this message......" then message appear.. a bit slow and sometimes message not appear at all. Maybe it happen because of the encryption... Does anyone else have this problem?

eirmd avatar Jul 27 '17 21:07 eirmd

@soyungenio have you try login with command line interface? -y

eirmd avatar Jul 27 '17 23:07 eirmd

@eirmd yes, i tried. I tried with yowsup-cli and without, there is also problem with sending to big groups 50-200 members with "Waiting for this message......" and "Discarding queued node without receipt". I described it here #2151.

soyungenio avatar Jul 28 '17 08:07 soyungenio

Hope someone can clarify this for us.

eirmd avatar Jul 28 '17 08:07 eirmd

Also have the problem: message to one person works, if the person is in a group of 4 peoples it doesn't work. When sending a (short) message to the group only the administrator and one other person receive it. Always the same two person get "waiting for ....". Around 3 month ago I had no problems..

gsmsepp avatar Sep 04 '17 11:09 gsmsepp

Also have the problem: message to one person works, if the person is in a group of 4 peoples it doesn't work. When sending a (short) message to the group only the administrator and one other person receive it. Always the same two person get "waiting for ....". Around 3 month ago I had no problems..

Try sync the keys of the group and the people in the group. Also, I really recommend using jut Yowsup and not Yowsup-cli.

coolnickname avatar Sep 04 '17 11:09 coolnickname

hi coolnickname, sorry for my question, what du you mean with sync the keys(how can I do it?). And I only know registration or sending messages with yowsup-cli commands.

gsmsepp avatar Sep 04 '17 11:09 gsmsepp

..new facts: -first I checked number and get output number(is OK), but problem still there sudo yowsup-cli demos -c /yowsup/config -S 43664xxxxxxx

-then I connect interactiv and send a message to the Group: sudo yowsup-cli demos --yowsup -c /yowsup/config /L (for Login) /message send 43664xxxxxxx-1458418519 "test message" ->Messages received by all Group members!

And now my old way to send messages works again: sudo yowsup-cli demos -s 43664xxxxxxx-1458418519 "test 15:20" -c /yowsup/config

I don't know why, maybe someone has an explanation for it....

gsmsepp avatar Sep 04 '17 13:09 gsmsepp

Maybe the send demo synces the keys

coolnickname avatar Sep 04 '17 18:09 coolnickname

...finally I have only a small issue: every 10 til 15 messages all members of the group get once "waiting for..." (all get it at the same time)

->see also #2078

gsmsepp avatar Sep 04 '17 20:09 gsmsepp

Also i tried use only yowsup, not yowsup-cl, all the same problem(; coolnickname, could you tell how to send demo synces the keys?

soyungenio avatar Sep 05 '17 17:09 soyungenio

I never really used the demos, so I don't know.On 5 Sep 2017 7:56 pm, Marat Gaptullin [email protected] wrote:Also i tried use only yowsup, not yowsup-cl, all the same problem(; coolnickname, could you tell how to send demo synces the keys?

—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.

coolnickname avatar Sep 05 '17 18:09 coolnickname

Hi, i insert in the sendclient/layer.py this: @ProtocolEntityCallback("receipt") def onReceipt(self, entity): self.toLower(entity.ack()) and now all get the massages Who can test it?

holgerschochwitz avatar Sep 13 '17 19:09 holgerschochwitz

@holgerschochwitz I tried your code but I do not work

majamatwo avatar Sep 14 '17 17:09 majamatwo