Browser-Phone
Browser-Phone copied to clipboard
XMPP: my own avatar image not shown
Hi,
Sorry for all the trouble I'm reporting on XMPP.
I'm unable to see my avatar image in Browser Phone. I don't see the "picture updated" mesasage in the console that usually appears for my xmpp buddies.
I'm getting this error on the client browser (my jid is 4053@...):
<iq id="c157990a-d7c6-4a38-b706-c3abdc03da81" type="error" to="[email protected]/NzDMEJhl" xmlns="jabber:client">
assignedSlot: null
attributes: NamedNodeMap(4) [ id="c157990a-d7c6-4a38-b706-c3abdc03da81", type="error", to="[email protected]/NzDMEJhl", … ]
baseURI: "https://bp.domain.org/bp.php?exten=4053"
childElementCount: 1
childNodes: NodeList [ error
]
children: HTMLCollection { 0: error
, length: 1 }
classList: DOMTokenList []
className: ""
clientHeight: 0
clientLeft: 0
clientTop: 0
clientWidth: 0
firstChild: <error type="modify">
firstElementChild: <error type="modify">
id: "c157990a-d7c6-4a38-b706-c3abdc03da81"
innerHTML: "<error xmlns=\"jabber:client\" 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>"
isConnected: true
lastChild: <error type="modify">
lastElementChild: <error type="modify">
localName: "iq"
namespaceURI: "jabber:client"
nextElementSibling: null
nextSibling: null
nodeName: "iq"
nodeType: 1
nodeValue: null
onfullscreenchange: null
onfullscreenerror: null
outerHTML: "<iq id=\"c157990a-d7c6-4a38-b706-c3abdc03da81\" type=\"error\" to=\"[email protected]/NzDMEJhl\" 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>"
ownerDocument: XMLDocument { … }
parentElement: <wrapper>
parentNode: <wrapper>
part: DOMTokenList []
prefix: null
previousElementSibling: null
previousSibling: null
scrollHeight: 0
scrollLeft: 0
scrollLeftMax: 0
scrollTop: 0
scrollTopMax: 0
scrollWidth: 0
shadowRoot: null
slot: ""
tagName: "iq"
textContent: "invalid-item"
I searched in the xmpp server log, but I'm just seeing an error of the same type with no additional info. I will ask the Prosody ML about this, but do you have any ideas what this could be?
Does Prosody support vCard? The picture is saved there.
Yes, it does, and I see the metadata and image/png data in the xmpp server (prosody). I can also see the vcard pictures of my xmpp buddies.
[EDIT] I don't know yet what "invalid-item" refers to...
OK, here's the thing.
The computer I originally set my avatar picture with can properly display it. However, if I connect with my credentials (same username, same xmpp account) from another computer my avatar picture is not downloaded from the xmpp server and displayed in Browser Phone. So I guess that in my first PC Browser Phone loads my picture from Local Storage.
I'm also guessing that the avatar picture can't be displayed in Browser Phone in the second PC because of the vCard error I'm seeing in the console. It's odd because all other avatar pictures of all my xmpp buddies are properly downloaded from the xmpp server and displayed in Browser Phone.
Can you try update the image, maybe that will reset this invalid-item
.