XMPP vCard error

29 views
Skip to first unread message

VDP

unread,
Nov 15, 2022, 8:12:50 AM11/15/22
to Prosody IM Users
Hi,

I'm using an xmpp webrtc client that tries to set a vcard and send status messages.
It is getting an error, and the reply from the Prosody server on the client seems to be:

<iq id="fc20a011-6799-4590-938c-3d068ea9ce6e" type="error" to="41...@xmpp.domain.org/GUq3uTrs" xmlns="jabber:client"><error type="modify"><undefined-condition xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">invalid-item</text></error></iq>

What does "invalid-item" refer to?

On the Prosody server I enabled verbose logging:

debug = "/var/log/jabber/prosody.log";

However, I only see this short error message not giving much info:

c2s55df01a20fc0 debug   Received[c2s]: <iq id='6566ec8d-bbb4-4607-b2ea-c8eaca4b7437' type='set' from='41...@xmpp.domain.org/nuOGmBra'>
c2s55df01a20fc0 debug   Sending[c2s]: <iq id='6566ec8d-bbb4-4607-b2ea-c8eaca4b7437' type='error' to='41...@xmpp.domain.org/nuOGmBra'>

I have these settings:

# prosodyctl about
Prosody 0.11.12

# Prosody directories
Data directory:     /var/spool/jabber

Incidentally, what should the content of the data directory be?

I have:

# ls /var/spool/jabber/xmpp%2edomain%2eorg/
accounts  pep                             pep_urn%3axmpp%3aavatar%3ametadata
offline   pep_urn%3axmpp%3aavatar%3adata  roster

# ls /var/spool/jabber/xmpp%2ehospitalmanacor%2eorg/pep_urn%3axmpp%3aavatar%3adata/4155*
/var/spool/jabber/xmpp%2ehospitalmanacor%2eorg/pep_urn%3axmpp%3aavatar%3adata/4155.list

# ls /var/spool/jabber/xmpp%2ehospitalmanacor%2eorg/pep_urn%3axmpp%3aavatar%3ametadata/4155*
/var/spool/jabber/xmpp%2ehospitalmanacor%2eorg/pep_urn%3axmpp%3aavatar%3ametadata/4155.list

The avatar data seems to be there.

Kim Alvefur

unread,
Dec 3, 2022, 11:31:59 AM12/3/22
to prosod...@googlegroups.com
Hi,

On Mon, Nov 14, 2022 at 11:58:26PM -0800, VDP wrote:
>I'm using an xmpp webrtc client that tries to set a vcard and send status
>messages.
>It is getting an error, and the reply from the Prosody server on the client
>seems to be:
>
><iq id="fc20a011-6799-4590-938c-3d068ea9ce6e" type="error"
>to="41...@xmpp.domain.org/GUq3uTrs" xmlns="jabber:client"><error
>type="modify"><undefined-condition
>xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text
>xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">invalid-item</text></error></iq>
>
>What does "invalid-item" refer to?

It comes from a validation routine applied to the <item> you are trying
to publish, defined here:
https://hg.prosody.im/trunk/file/0.11.12/plugins/mod_pep.lua#l63

Unfortunately, without seeing the query that triggered this error, all
that can be said is that the data violates one of the things the
function checks for.

--
Best regards,
Kim "Zash" Alvefur

VDP

unread,
Jun 23, 2023, 8:16:53 AM6/23/23
to Prosody IM Users
On Saturday, December 3, 2022 at 5:31:59 PM UTC+1 Kim Alvefur wrote:

Unfortunately, without seeing the query that triggered this error, all
that can be said is that the data violates one of the things the
function checks for.

Can I tell prosody (server) to "log" the query received from the client?
If so, how?

Reply all
Reply to author
Forward
0 new messages