Closed Zedonboy closed 2 years ago
⚠ If you need help with XMPP itself, please visit https://xmpp.org/community/ instead.
Describe the bug I used the parser to type raw iq stanzas but I get XML error must be a child, like the examples
`const iqStanza = parse(` <iq id="MTgwNTgxNGUtMDc1OC00ODlmLWIyMTMtMmRjMzM0Y2U3Y2E2M2E1NzIxOGFmNzVhYTExY2Y5NzM0MTdlYzkwYjY2ZjhhYTc5YzE0YmExN2Y5NDY5NjVhZTJmZDIyMGEzZjUyNw==" type="get"> <ping xmlns="urn:xmpp:ping"></ping> </iq>`
Logs
XMLError: must be a child. at Parser.onText (/home/declan/DEV/Apps/BaatChat/baatChatClient/node_modules/@xmpp/xml/lib/Parser.js:63:26)
Environment Linux. I need help
Solved mine const message = "<stanza here/>" const iqstanza = parse(message)
const message = "<stanza here/>"
const iqstanza = parse(message)
⚠ If you need help with XMPP itself, please visit https://xmpp.org/community/ instead.
Describe the bug I used the parser to type raw iq stanzas but I get XML error must be a child, like the examples
Logs
Environment Linux. I need help