node-red / node-red/node-red-nodes

Wrong user/password when use node-red-node-xmpp

Open
#130 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.1k
Forks
612
Avg merge
13h 57m
Merged PRs (30d)
3

Description

Dear all,
I have problem when using node-red-node-xmpp on my node-red
it error authentication fail.
after I debug message, I got this error

{ state: 0,
domain: null,
_events: { end: [Function], close: [Function] },
_maxListeners: 10,
jid:
{ local: null,
domain: ‘demo’,
resource: null
},
password: ‘demo’,
preferredSaslMechanism: 'DIGEST-MD5',
availableSaslMechanisms:

[ { [Function: DigestMD5] super_: [Object] },
{ [Function: Plain] super_: [Object] },
{ [Function: Anonymous] super_: [Object] } ],
api_key: undefined,
access_token: undefined,
oauth2_token: undefined,
oauth2_auth: undefined,
register: undefined,
actAs: undefined,
connection:
{ domain: null,
_events:
{ connect: [Function],
stanza: [Function],
drain: [Function],
end: [Function],
close: [Function],
error: [Function] },
_maxListeners: 10,
streamAttrs: { version: '1.0', to: ‘demo’ },
xmlns:
{ '': 'jabber:client',
stream: 'http://etherx.jabber.org/streams' },
socket:
{ _connecting: true,
_handle: [Object],
_readableState: [Object],
readable: true,
domain: null,
_events: [Object],
_maxListeners: 10,
_writableState: [Object],
writable: true,
allowHalfOpen: false,
onend: null,
destroyed: false,
bytesRead: 0,
_bytesDispatched: 0,
_pendingData: null,
_pendingEncoding: '',
pipe: [Function],
addListener: [Function: addListener],
on: [Function: addListener],
pause: [Function],
resume: [Function],
read: [Function],
_consuming: true,
serializeStanza: [Function] },
rejectUnauthorized: false,
requestCert: false,
servername: undefined,
reconnectDelay: 0,
mixins: [] } }

but after I try to use simple-xmpp module
it work

{ state: 0,
domain: null,
events: { end: [Function], close: [Function] },
maxListeners: 10,
jid:
{ local: 'demo',
domain: 'xmpp.wirelesssolution.asia',
resource: null,
user: 'demo' },
password: 'demo',
preferredSaslMechanism: 'DIGEST-MD5',
availableSaslMechanisms:
[ { [Function] super
: [Object] },
{ [Function: DigestMD5] super
: [Object] },
{ [Function: Plain] super_: [Object] },
{ [Function: Anonymous] super_: [Object] } ],
api_key: undefined,
access_token: undefined,
oauth2_token: undefined,
oauth2_auth: undefined,
register: undefined,
actAs: undefined,
connection:
{ domain: null,
_events:
{ stanza: [Function],
drain: [Function],
end: [Function],
close: [Function],
error: [Function] },
_maxListeners: 10,
streamAttrs: { version: '1.0', to: 'xmpp.wirelesssolution.asia' },
xmlns:
{ '': 'jabber:client',
stream: 'http://etherx.jabber.org/streams' },
socket:
{ _connecting: false,
_handle: null,
_readableState: [Object],
readable: true,
domain: null,
_events: [Object],
_maxListeners: 10,
_writableState: [Object],
writable: false,
allowHalfOpen: false,
onend: null,
destroyed: false,
bytesRead: 0,
_bytesDispatched: 0,
_pendingData: null,
_pendingEncoding: '',
pipe: [Function],
addListener: [Function: addListener],
on: [Function: addListener],
pause: [Function],
resume: [Function],
read: [Function],
_consuming: true,
serializeStanza: [Function] },
rejectUnauthorized: false,
requestCert: false,
servername: undefined,
reconnectDelay: 0,
mixins: [] } }
Yes, I'm connected!

Do you have any idea ? what I want to do.
Regards,
TIN

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Compare the node-red-node-xmpp configuration with the working simple-xmpp example, focusing on the JID fields and XMPP server domain shown in the debug output. Reproduce the authentication failure with the supplied credentials and confirm the node connects with the same server and user details.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.