Skip to content
This repository has been archived by the owner on May 9, 2019. It is now read-only.

Sporadic error while sending image: 'NoneType' object has no attribute 'getChild' #41

Open
hgc2002 opened this issue Dec 29, 2017 · 3 comments
Labels

Comments

@hgc2002
Copy link

hgc2002 commented Dec 29, 2017

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.

@hgc2002
Copy link
Author

hgc2002 commented Dec 29, 2017

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.

@Aragur Aragur added the bug label Dec 31, 2017
@hgc2002
Copy link
Author

hgc2002 commented Jan 13, 2018

Fixing my old comment. The fail has nothing to do with contact syncing. Keep ignoring why this fails.

@hoehermann
Copy link

For the sake of completeness, this might be related to tgalal#1521. @hgc2002, can you try the patch I mentioned there? I am still not sure if it messes up more things than it fixes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants