yowsup
yowsup copied to clipboard
Sporadic error while sending image: 'NoneType' object has no attribute 'getChild'
I've found several images that can be sent to me but they fail to any other contact. I've made the contact sync before sending the image. With the latest merge, the error has changed from byte upload error to this one:
File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.5.2-py3.4.egg/yowsup/layers/__init__.py", line 194, in receive s.receive(data) File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.5.2-py3.4.egg/yowsup/layers/axolotl/layer_send.py", line 126, in receive if not self.processIqRegistry(protocolTreeNode): File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.5.2-py3.4.egg/yowsup/layers/__init__.py", line 161, in processIqRegistry successClbk(protocolTreeNode, originalIq) File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.5.2-py3.4.egg/yowsup/layers/axolotl/layer_base.py", line 51, in onSuccess entity = ResultGetKeysIqProtocolEntity.fromProtocolTreeNode(resultNode) File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.5.2-py3.4.egg/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'
I can send the image to private email to anybody who want to try it.
What else do you need to analyze this strange problem?
Thanks in advance.
I've found that has nothing to do with the type of sending, but perhaps with the contact not being correctly added to my contact list before sending the message.
So the question is, in order to send a message to a new contact, how should I add it to my contact list in order to be able to send the message after that?
Thanks for your help.
Fixing my old comment. The fail has nothing to do with contact syncing. Keep ignoring why this fails.
For the sake of completeness, this might be related to tgalal/yowsup#1521. @hgc2002, can you try the patch I mentioned there? I am still not sure if it messes up more things than it fixes.