Closed guusdk closed 6 months ago
This is strange behavior. It implies that some XMPP messages exchanged do not include namespace attribute :astonished:.
Could you post the XMPP messages concerned (from the browser's network>websocket tab)?
<open xmlns='urn:ietf:params:xml:ns:xmpp-framing' version='1.0' xml:lang='en' id='4aaae241-3906-4e7f-b519-a4073cf5bda2' from='mydomain.ltd'/>
If I'm reading this correctly, then the data that's being parsed is a newline character only?
Mmmhh I do not know as I usually do not use browser debugger with compiled js 😆 What messages do you see in Network tab (on the /xmpp-websocket websocket)?
This function should not be called with anything else other than a XML string. Does your plugin send HTML code (of this app) toward the websocket?
There's to much data for me to go through it manually. I'm joined a good deal of chatrooms. Most of them will send message history. I've got about 100 contacts, many of them will send presence. These errors are caught during the initial part of the session (right after logging in) so I do assume it has to do with MAM or presence, but I'm not sure.
The app is hosted at https://xmpp.igniterealtime.org:7483/xmppweb
I'd be happy to provide you with an account on that server, so that you can debug on your own end.
Okay I understand, you can provide me a test account, I'll have a look.
Another option: I can provide you a debug version on this thread, if you have the possibility to install it in parallel (another Nginx path) we'll be able to do a more accurate error try catch and see the problematic frame.
I have created an account for you, nioc / ~zL9AhvcASPghiGW~ - I have added myself to the roster of that account. Please change the password when you first login, or contact me to change it for you.
Sadly, using this account, I've not been able to reproduce the error yet.
Debug output
Similar issue here:
Summary of our exchange:
xmlns
attribute,Let me know if this version fixes all cases of this problem.
I have tested the latest debug build that you left for me last night. It appears to fix the problem!
Great news, I'll release it tonight.
Thanks!
We've now created an Openfire plugin for this client: https://discourse.igniterealtime.org/t/new-openfire-plugin-xmpp-web
Thanks, it is very kind.
I just have a question about maintenance: How does the plug-in handle web-xmpp updates? I mean, does it has to be updated for each future release or it check/use the latest release at installation/start?
Every update is manual. We do the same for a couple of other web clients. It is a bit of a hassle, but not to bad.
Ok 😉 Thanks for it. If you want to write a little something in the project README for advertising let me know.
Describe the bug
I'm creating an Openfire plugin that wraps xmpp-web and deploys it in Openfire's embedded web server. This will make deployment of your client into Openfire super simple.
While testing the plugin, and logging in with my own account (lots of roster items, lots of MUC rooms to join), the console log is full of stace traces like this one:
With my (very) limited javascript skills, I tried clicking through to the source code, which pointed at this line of code:
It appears that this bit of code expectes there always to be an
attrs
property on whatever is being iterated over there?I'm certainly not ruling out a bug in Openfire here, but it might be good to perform a null-check on
attrs
before trying to access one of its properties.Steps to reproduce
No response
Expected behavior
I'm certainly not ruling out a bug in Openfire here, but it might be good to perform a null-check on
attrs
before trying to access one of its properties.Relevant log
No response
local.js configuration
No response
XMPP-web version
0.10.0
Installation
Github release archive
XMPP server(s)
Openfire
Browser(s)
Chrome
Device(s)
No response
Other information
No response