allieanyone here happen to have experience using stanza.io? I'm running into some weird issues with it and I'm not quite sure what to do
wurstsalathas left
lksjdflksjdfhas left
moparisthebesthas left
moparisthebesthas joined
sonnyhas left
alliein case anyone happens to stop back by when I'm away, when I use client.getRoomMembers(jid) in stanza.io, I get an error. It looks like it may be sending some type of incorrect/malformed request to the server, so it gets rejected, but I can't figure out what it's supposed to be sending or if I'm missing something. Stanza seems to not have much in the way of documentation.
alliehas left
alliehas joined
ajhas joined
moparisthebesthas left
moparisthebesthas joined
chronosx88has joined
rionhas left
rionhas joined
sonnyhas joined
larmahas left
sonnyhas left
larmahas joined
asterixhas joined
sonnyhas joined
sonnyhas left
lovetoxhas joined
ShadowRangerhas joined
lovetoxallie, show us what it sends, and what the response from the server is
ShadowRangerhas left
asterixhas left
asterixhas joined
sonnyhas joined
debaclehas joined
Syndacehas left
asterixhas left
asterixhas joined
Syndacehas joined
debaclehas left
asterixhas left
wurstsalathas joined
asterixhas joined
Danielhas left
sonnyhas left
UsLhas joined
debaclehas joined
ajhas left
UsLhas left
Danielhas joined
sonnyhas joined
skyfarhas joined
Danielhas left
UsLhas joined
asterixhas left
asterixhas joined
lksjdflksjdfhas joined
skyfarhas left
ralphmhas left
ralphmhas joined
UsLhas left
debaclehas left
Zashhas left
ajhas joined
asterixhas left
asterixhas joined
Danielhas joined
Danielhas left
asterixhas left
asterixhas joined
Zashhas joined
chronosx88has left
debaclehas joined
chronosx88has joined
asterixhas left
asterixhas joined
asterixhas left
asterixhas joined
Danielhas joined
Holgerhas left
ajhas left
asterixhas left
asterixhas joined
lksjdflksjdfhas left
lksjdflksjdfhas joined
SkyfaRhas left
SkyfaRhas joined
asterixhas left
asterixhas joined
debaclehas left
debaclehas joined
asterixhas left
asterixhas joined
asterixhas left
asterixhas joined
asterixhas left
asterixhas joined
allielovetox: I will once I'm back at the computer :)
asterixhas left
asterixhas joined
asterixhas left
asterixhas joined
asterixhas left
asterixhas joined
asterixhas left
asterixhas joined
gavhas joined
asterixhas left
asterixhas joined
asterixhas left
asterixhas joined
debaclehas left
asterixhas left
asterixhas joined
asterixhas left
asterixhas joined
moparisthebesthas left
moparisthebesthas joined
Danielhas left
Danielhas joined
Danielhas left
asterixhas left
asterixhas joined
chronosx88has left
Danielhas joined
chronosx88has joined
asterixhas left
asterixhas joined
asterixhas left
asterixhas joined
allielovetox: ugh, I'm not sure which part to show. It seems sometimes it sends an iq to the room JID, but sometimes it's just a mostly empty request? Neither one of them work, though. I'm not sure what is going on or if I'm just using this library incorrectly.
allielovetox: here's the one that's sorta empty: <body xmlns="http://jabber.org/protocol/httpbind" rid="3391751414" sid="ebf40bc3-de75-47d2-9241-e6af623f0417"><r xmlns="urn:xmpp:sm:3"/></body>
allielovetox: and the response to that is: <body sid='ebf40bc3-de75-47d2-9241-e6af623f0417' xmlns:stream='http://etherx.jabber.org/streams' xmlns='http://jabber.org/protocol/httpbind'><iq type='error' to='scc@mbl.social/a3gSsBnh' from='moonbootlabs@chat.mbl.social' id='1891886b-7d9a-4e84-bf83-9c51b6ca8578' xmlns='jabber:client'><error type='cancel'><bad-request xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></iq><a h='7' xmlns='urn:xmpp:sm:3'/></body>
alliebut sometimes...
Zashxep-198 in bosh???
allieZash: I think stanza supports it?
allieI'm not enabling anything other than whatever the defaults are, though.
ZashBut...
skyfarhas joined
allieI have no idea
allieall of these libraries are just frustrating me. there seems to be almost no documentation. I guess I'm supposed to know how to use everything before knowing how to use it :(
asterixhas left
asterixhas joined
debaclehas joined
lovetoxallie, i would disable bosh and connect normaly to start with
lovetoxand no you didnt post the iq the lib sent
lovetoxonly a streammanagement stanza
allieno, I didn't. because now I'm trying to figure out what is actually relevant.
allieand what do you mean "connect normally"?
lovetoxrelevant is the iq that has the id 1891886b-7d9a-4e84-bf83-9c51b6ca8578
marc0shas left
marc0shas joined
alliek let me look
lovetoxi thought you writing a client here, are you saying the lib prefers connecting via bosh
lovetoxand you didnt configure that
allieit's a JavaScript library. stanza.io. I don't think it connects any way but bosh or websockets
lovetoxalways look only into whats inside the body tags
lovetoxyeah you just reposted the error
lovetoxbut there has to be an iq with that id before the error
lovetoxIq request has an ID, and the answer reflects that id
lovetoxyou posting the answer
alliemaybe firefox is getting confused here. let me try to rerun it all. that came from the request body of the client.
allie(rather than the response)
allieor it's just me, hell if I know
alliegimme a sec
lovetoxand maybe use some paste site
alliehttps://pastebin.com/JAtYkJC7
lovetoxyeah this is wrong
lovetoxits missing what affiliation you want to request
lovetoxare you sure you can set it somewhere on the stanza?
lovetox<item affiliation='member'/>
lovetoxthats how it should look like int the request
allieI think it can be set through the options to that function. But there's no documentation that I can find. Let me try something there and see if it works.
asterixhas left
asterixhas joined
asterixhas left
asterixhas joined
lovetoxit seems you have to create a MUCUserItem and pass it
lovetoxand in that object you have to set a MUCAffiliation of type member
lovetoxif you want the member list
lovetoxand just before you get suprised, member list does not include admins and owner
lovetoxyou have to request the owner list and admin list for that
lovetoxbut i would report it as a bug to the project, that the second argument is optional
lovetoxthis function makes no sense without the second argument
allieso, if I add the affiliation and pass it in the way it looks like it is in the source, I get an auth error saying forbidden
lovetoxyes possible, some servers only allow admins and owners to retrive that list
lovetoxcreate a muc on your own and test again
alliethe request includes <item affiliation="member">
lovetoxyes then its correct, auth error means you are not allowed
lovetoxmeans you are not an admin or owner in this muc
alliemakes sense
lovetoxsome server allow it some dont
allieso if the room is set where only admins/moderators can see JIDs of members, is that what would prevent it?
lovetoxyes then the server should definitly not send you the list
allieso how does a client determine who is in the room?
lovetoxread XEP-0045
lovetoxshort version, you get a presence stanza of everyone who is in the room currently, on join
allieOkay, I think I've got it. All I'm trying to do is make a web-based MUC client that does what I want. But it seems nobody likes to document these libraries.
alliethank you for helping me and pointing me in the right direction :)