jdev - 2024-04-10


  1. Schimon

    Good evening to one and all!

  2. Schimon

    I am publishing items to PubSub nodes (for Movim) and I get this error: ``` ERROR:root:Error XmppIQ ERROR:root:<iq to="slixfeed@canchat.org/slixfeed" type="error" id="a312c789b3804746b54c5e1e4320bc1e"><error type="cancel"><conflict xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /></error></iq> xmpp_pubsub_send_selected_entry slixfeed@canchat.org urn:xmpp:microblog:0 ERROR:root:Error XmppIQ ERROR:root:<iq to="slixfeed@canchat.org/slixfeed" type="error" id="2b1f7dfa70be4bafb4cfbda967c1b546"><error type="cancel"><conflict xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /></error></iq> xmpp_pubsub_send_selected_entry slixfeed@canchat.org urn:xmpp:microblog:0 ERROR:root:Error XmppIQ ERROR:root:<iq to="slixfeed@canchat.org/slixfeed" type="error" id="174fda3b9359449594b37f8755c0aed0"><error type="cancel"><conflict xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /></error></iq> xmpp_pubsub_send_selected_entry slixfeed@canchat.org urn:xmpp:microblog:0 ``` May someone please explain it?

  3. Zash

    Schimon, can you show the publish requests?

  4. Zash

    Error related to https://xmpp.org/extensions/xep-0060.html#publisher-publish-options perhaps?

  5. Schimon

    > Schimon, can you show the publish requests? Zash, I do not know what it means. Do you want me to show the code?

  6. Schimon

    > Schimon, can you show the publish requests? Zash, I do not know what "publish request" means. Do you want me to show the code?

  7. Zash

    Code probably helps. But your paste shows errors that are sent in response to _something_, and it would be helpful to know what the _something_ was.

  8. Schimon

    Zash, I will update the code in the repository this evening or the next day. Here is a paste with the main functions https://dpaste.org/AuMVq

  9. nicoco

    Schimon, at the top of your script, add `import logging; logging.basicConfig(level=logging.DEBUG)`, then you'll see what your script `SEND:`s which will allow you to post here and maybe even get help from dev who don't want to read python ;)

  10. Schimon

    nicoco, thank you. I must handle logging. I did partial work on it https://gitgud.io/sjehuda/slixfeed/-/blob/master/slixfeed/log.py?ref_type=heads (consider it none)