nodejs: login user name or password wrong
Hello,
Please help me to resole the below error.
Note: Normal login with developer account are working fine.
>node index.js
2018-10-12 23:55:17 [1539368717468] - info:LOGS - ------------------------------------------------
2018-10-12 23:55:17 [1539368717476] - info:LOGS - Welcome to the ALE Rainbow SDK for Node.JS
2018-10-12 23:55:17 [1539368717477] - info:LOGS - Where Everything connects
2018-10-12 23:55:17 [1539368717477] - info:LOGS - Support: Send message to Emily using #support #api
2018-10-12 23:55:17 [1539368717478] - info:LOGS - ------------------------------------------------
2018-10-12 23:55:17 [1539368717478] - info:LOGS - (constructor) No file logs enabled
2018-10-12 23:55:17 [1539368717478] - debug:CORE - (constructor) _entering_
2018-10-12 23:55:17 [1539368717479] - debug:CORE - (constructor) ------- SDK INFORMATION -------
2018-10-12 23:55:17 [1539368717479] - info:CORE - (constructor) SDK version: 1.47.1
2018-10-12 23:55:17 [1539368717479] - info:CORE - (constructor) Node version: v8.12.0
2018-10-12 23:55:17 [1539368717479] - info:CORE - (constructor) http_parser version: 2.8.0
2018-10-12 23:55:17 [1539368717480] - info:CORE - (constructor) node version: 8.12.0
2018-10-12 23:55:17 [1539368717480] - info:CORE - (constructor) v8 version: 6.2.414.66
2018-10-12 23:55:17 [1539368717480] - info:CORE - (constructor) uv version: 1.19.2
2018-10-12 23:55:17 [1539368717480] - info:CORE - (constructor) zlib version: 1.2.11
2018-10-12 23:55:17 [1539368717481] - info:CORE - (constructor) ares version: 1.10.1-DEV
2018-10-12 23:55:17 [1539368717481] - info:CORE - (constructor) modules version: 57
2018-10-12 23:55:17 [1539368717481] - info:CORE - (constructor) nghttp2 version: 1.32.0
2018-10-12 23:55:17 [1539368717482] - info:CORE - (constructor) napi version: 3
2018-10-12 23:55:17 [1539368717482] - info:CORE - (constructor) openssl version: 1.0.2p
2018-10-12 23:55:17 [1539368717482] - info:CORE - (constructor) icu version: 60.1
2018-10-12 23:55:17 [1539368717482] - info:CORE - (constructor) unicode version: 10.0
2018-10-12 23:55:17 [1539368717482] - info:CORE - (constructor) cldr version: 32.0
2018-10-12 23:55:17 [1539368717483] - info:CORE - (constructor) tz version: 2017c
2018-10-12 23:55:17 [1539368717483] - debug:CORE - (constructor) ------- SDK INFORMATION -------
2018-10-12 23:55:17 [1539368717485] - info:OPTIONS - (constructor) 'proxy' property is not defined. Use default: no proxy. Check the documentation to enable it
2018-10-12 23:55:17 [1539368717486] - error:OPTIONS - (constructor) 'appId' or 'appSecret' is not defined. Can't sign-in. Check the documentation to configure it
2018-10-12 23:55:17 [1539368717487] - debug:OPTIONS - (constructor) Use REST services on Rainbow Sandbox platform
2018-10-12 23:55:17 [1539368717487] - debug:OPTIONS - (constructor) Use XMPP services on Rainbow Sandbox platform
2018-10-12 23:55:17 [1539368717489] - info:CORE - (constructor) used in XMPP mode
2018-10-12 23:55:17 [1539368717492] - debug:CORE - (constructor) _exiting_
2018-10-12 23:55:17 [1539368717493] - debug:CORE - (start) _entering_
2018-10-12 23:55:17 [1539368717495] - debug:CORE - (start) start all modules for user : sunnysing935@gmail.com
2018-10-12 23:55:17 [1539368717497] - debug:STATEMGR - (start) _entering_
2018-10-12 23:55:17 [1539368717498] - info:STATEMGR - (start) current state stopped
2018-10-12 23:55:17 [1539368717499] - debug:STATEMGR - (start) _exiting_
2018-10-12 23:55:17 [1539368717501] - debug:HTTP - (start) _entering_
2018-10-12 23:55:17 [1539368717501] - debug:HTTP - (start) host used sandbox.openrainbow.com
2018-10-12 23:55:17 [1539368717502] - info:HTTP - (start) REST URL https://sandbox.openrainbow.com:443
2018-10-12 23:55:17 [1539368717502] - debug:HTTP - (start) _exiting_
2018-10-12 23:55:17 [1539368717503] - debug:REST - (start) _entering_
2018-10-12 23:55:17 [1539368717505] - info:REST - (start) email used sunnysing935@gmail.com
2018-10-12 23:55:17 [1539368717508] - debug:REST - (start) _exiting_
2018-10-12 23:55:17 [1539368717508] - debug:XMPP - (start) _entering_
2018-10-12 23:55:17 [1539368717509] - debug:XMPP - (start) host used sandbox.openrainbow.com
2018-10-12 23:55:17 [1539368717509] - info:XMPP - (start) XMPP URL
2018-10-12 23:55:17 [1539368717510] - debug:XMPP - (start) _exiting_
2018-10-12 23:55:17 [1539368717511] - debug:SETT - (start) _entering_
2018-10-12 23:55:17 [1539368717511] - debug:SETT - (start) _exiting_
2018-10-12 23:55:17 [1539368717512] - debug:PRES - (start) _entering_
2018-10-12 23:55:17 [1539368717513] - debug:PRES - (start) _exiting_
2018-10-12 23:55:17 [1539368717514] - debug:CONTACTS - (start) _entering_
2018-10-12 23:55:17 [1539368717515] - debug:CONTACTS - (start) Create userContact (undefined)
2018-10-12 23:55:17 [1539368717518] - debug:CONTACTS - (start) _exiting_
2018-10-12 23:55:17 [1539368717519] - debug:BUBBLES - (start) _entering_
2018-10-12 23:55:17 [1539368717519] - debug:BUBBLES - (start) _exiting_
2018-10-12 23:55:17 [1539368717520] - debug:CONVERSATIONS - (start) _entering_
2018-10-12 23:55:17 [1539368717524] - debug:CONVERSATIONS - (start) _exiting_
2018-10-12 23:55:17 [1539368717525] - info:PROFILES - (start) [profileService] === STARTING ===
2018-10-12 23:55:17 [1539368717527] - debug:TELEPHONY - (start) _entering_
2018-10-12 23:55:17 [1539368717528] - debug:PROFILES - (isFeatureEnabled) : TELEPHONY_VOICE_MAIL : service not started or feature not enabled
2018-10-12 23:55:17 [1539368717531] - debug:TELEPHONY - (start) _exiting_
2018-10-12 23:55:17 [1539368717532] - debug:IM - (start) _entering_
2018-10-12 23:55:17 [1539368717532] - debug:IM - (start) _exiting_
2018-10-12 23:55:17 [1539368717534] - debug:CHANNELS - (start) _entering_
2018-10-12 23:55:17 [1539368717535] - debug:CHANNELS - (start) _exiting_
2018-10-12 23:55:17 [1539368717536] - debug:GROUPS - (start) _entering_
2018-10-12 23:55:17 [1539368717538] - debug:GROUPS - (start) _exiting_
2018-10-12 23:55:17 [1539368717539] - debug:ADMIN - (start) _entering_
2018-10-12 23:55:17 [1539368717539] - debug:ADMIN - (start) _exiting_
2018-10-12 23:55:17 [1539368717540] - debug:FileServer - (start) _entering_
2018-10-12 23:55:17 [1539368717540] - debug:FileStorage - (start) _entering_
2018-10-12 23:55:17 [1539368717541] - debug:CORE - (start) all modules started successfully
2018-10-12 23:55:17 [1539368717542] - info:STATEMGR - (transitTo) set state started
2018-10-12 23:55:17 [1539368717546] - info:EVENTS - (publish) event rainbow_onstarted : { code: 1, label: 'SUCCESSFULL', msg: '' }
2018-10-12 23:55:17 [1539368717547] - debug:CORE - (start) _exiting_
2018-10-12 23:55:17 [1539368717548] - debug:CORE - (signin) _entering_
2018-10-12 23:55:17 [1539368717549] - debug:XMPP - (stop) _entering_
2018-10-12 23:55:17 [1539368717550] - debug:XMPP - (stop) nothing to stop
2018-10-12 23:55:17 [1539368717550] - debug:XMPP - (stop) _exiting_
2018-10-12 23:55:17 [1539368717551] - debug:REST - (signin) _entering_
2018-10-12 23:55:17 [1539368717553] - info:HTTP - (get) url https://sandbox.openrainbow.com:443/api/rainbow/authentication/v1.0/login
2018-10-12 23:55:18 [1539368718523] - info:HTTP - (get) HTTP code 401
2018-10-12 23:55:18 [1539368718527] - warn:HTTP - (get) HTTP response.code != 200 , response : {"statusCode":401,"body":{"errorCode":401,"errorMsg":"Unauthorized","errorDetails":"Unknown login or wrong password for login sunnysing935@gmail.com, login is forbidden","errorDetailsCode":401501},"headers":{"x-rainbow-request-id":"Js39_hfor","content-type":"application/json; charset=utf-8","content-length":"171","etag":"W/\"ab-duxJVq5LnFdBoST9lm3dKCU1tlI\"","x-response-time":"156.382ms","date":"Fri, 12 Oct 2018 18:25:16 GMT","connection":"close","cache-control":"max-age=0, no-cache, must-revalidate","strict-transport-security":"max-age=315360000; includeSubDomains; preload","x-frame-options":"DENY","x-xss-protection":"1; mode=block","x-content-type-options":"nosniff"},"request":{"uri":{"protocol":"https:","slashes":true,"auth":null,"host":"sandbox.openrainbow.com:443","port":"443","hostname":"sandbox.openrainbow.com","hash":null,"search":null,"query":null,"pathname":"/api/rainbow/authentication/v1.0/login","path":"/api/rainbow/authentication/v1.0/login","href":"https://sandbox.openrainbow.com:443/api/rainbow/authentication/v1.0/login"},"method":"get","headers":{"Accept":"application/json","Content-Type":"application/json","Authorization":"Basic xxxxxxxxxxxxxxxxxxxxxxxxxxxxx","x-rainbow-client":"sdk_node","x-rainbow-client-version":"1.47.1","user-agent":"node/v8.12.0 (win32; x64) Rainbow Sdk/1.47.1","content-length":0}}}
2018-10-12 23:55:18 [1539368718530] - error:REST - { code: 401,
msg: 'Unauthorized',
details: '"Unknown login or wrong password for login sunnysing935@gmail.com, login is forbidden"' }
2018-10-12 23:55:18 [1539368718532] - debug:REST - (signin) _exiting_
2018-10-12 23:55:18 [1539368718533] - error:CORE - (signin) can't signed-in { code: 401,
msg: 'Unauthorized',
details: '"Unknown login or wrong password for login sunnysing935@gmail.com, login is forbidden"' }
2018-10-12 23:55:18 [1539368718535] - debug:CORE - (signin) _exiting_
[index ] : rainbow_onrainbow_onconnectionerror : {"code":-2,"label":"UNAUTHORIZED","msg":"The email or the password is not correct","details":{"code":401,"msg":"Unauthorized","details":"\"Unknown login or wrong password for login sunnysing935@gmail.com, login is forbidden\""}}
2018-10-12 23:55:18 [1539368718542] - info:EVENTS - (publish) event rainbow_onrainbow_onconnectionerror : { code: -2,
label: 'UNAUTHORIZED',
msg: 'The email or the password is not correct',
details:
{ code: 401,
msg: 'Unauthorized',
details: '"Unknown login or wrong password for login sunnysing935@gmail.com, login is forbidden"' } }
{ code: -2,
label: 'UNAUTHORIZED',
msg: 'The email or the password is not correct',
details:
{ code: 401,
msg: 'Unauthorized',
details: '"Unknown login or wrong password for login sunnysing935@gmail.com, login is forbidden"' } }
Please sign in to leave a comment.
Comments
1 comment