Implement fallback on precondition-not-met error when publishing devicelist and bundle
Fixes #6 (closed).
I am hitting weird timeouts though for the moment and I am not entirely sure why.
DEBUG RECV: <iq type="error" to="test11@bouah.net/mN8b_xjx" id="a5477e34121b44e089c3aa4d62cbf664"><error type="cancel"><conflict xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /><precondition-not-met xmlns="http://jabber.org/protocol/pubsub#errors" /></error></iq>
DEBUG The node we tried to publish was alreadye xisting with a different configuration. Trying to configure manually..
DEBUG SEND: <iq type="set" to="test11@bouah.net/mN8b_xjx" id="f0ee8c5d1124490b983d3dc51ac2a0ef"><pubsub xmlns="http://jabber.org/protocol/pubsub#owner"><configure node="eu.siacs.conversations.axolotl.devicelist"><x xmlns="jabber:x:data" type="submit"><field var="FORM_TY
PE"><value>http://jabber.org/protocol/pubsub#node_config</value></field><field var="pubsub#persist_items"><value>1</value></field></x></configure></pubsub></iq>
DEBUG RECV: <iq to="test11@bouah.net/mN8b_xjx" xml:lang="en" from="test11@bouah.net/mN8b_xjx" type="set" id="f0ee8c5d1124490b983d3dc51ac2a0ef"><pubsub xmlns="http://jabber.org/protocol/pubsub#owner"><configure node="eu.siacs.conversations.axolotl.devicelist"><x xmlns="j
abber:x:data" type="submit"><field var="FORM_TYPE"><value>http://jabber.org/protocol/pubsub#node_config</value></field><field var="pubsub#persist_items"><value>1</value></field></x></configure></pubsub></iq>
DEBUG Scheduled event: IqTimeout_f0ee8c5d1124490b983d3dc51ac2a0ef
ERROR Task exception was never retrieved
future: <Task finished coro=<XEP_0384._set_device_list() done, defined at /home/ppjet/Src/slixmpp-omemo/slixmpp_omemo/__init__.py:382> exception=IqTimeout(<iq type="set" to="test11@bouah.net/mN8b_xjx" id="f0ee8c5d1124490b983d3dc51ac2a0ef"><pubsub xmlns="http://jabber.org/p
rotocol/pubsub#owner"><configure node="eu.siacs.conversations.axolotl.devicelist"><x xmlns="jabber:x:data" type="submit"><field var="FORM_TYPE"><value>http://jabber.org/protocol/pubsub#node_config</value></field><field var="pubsub#persist_items"><value>1</value></field></x
></configure></pubsub></iq>)>
Traceback (most recent call last):
File "/home/ppjet/Src/slixmpp-omemo/slixmpp_omemo/__init__.py", line 436, in _set_device_list
'existing with a different configuration.'
slixmpp.exceptions.IqTimeout: <iq type="set" to="test11@bouah.net/mN8b_xjx" id="f0ee8c5d1124490b983d3dc51ac2a0ef"><pubsub xmlns="http://jabber.org/protocol/pubsub#owner"><configure node="eu.siacs.conversations.axolotl.devicelist"><x xmlns="jabber:x:data" type="submit"><fie
ld var="FORM_TYPE"><value>http://jabber.org/protocol/pubsub#node_config</value></field><field var="pubsub#persist_items"><value>1</value></field></x></configure></pubsub></iq>
Signed-off-by: Maxime “pep” Buquet pep@bouah.net