Can't manage company via CLI - command line not available after login
RespondidaHi,
after login, i can't do nothing via CLI connected to web-sandbox. See log below:
___________________________________________________________________________
(( command executed: rbw login ruben@intuitiva.net.br MyPassword --verbose ))
2018-3-28 10:41:28 [1522244488068] - debug: options passed noOutput=false
Welcome to Rainbow CLI
Version 1.36.0
2018-3-28 10:41:28 [1522244488297] - debug: signin with ruben@intuitiva.net.br
2018-3-28 10:41:28 [1522244488299] - debug: signin on sandbox
2018-3-28 10:41:28 [1522244488303] - debug: CLI/SDK - (start) use account ruben@intuitiva.net.br
2018-3-28 10:41:28 [1522244488311] - info: LOGS - ------------------------------------------------
2018-3-28 10:41:28 [1522244488314] - info: LOGS - Welcome to the ALE Rainbow SDK for Node.JS
2018-3-28 10:41:28 [1522244488315] - info: LOGS - Where Everything connects
2018-3-28 10:41:28 [1522244488316] - info: LOGS - Support: Send message to Emily using #support #api
2018-3-28 10:41:28 [1522244488316] - info: LOGS - ------------------------------------------------
2018-3-28 10:41:28 [1522244488319] - info: LOGS - (constructor) No file logs enabled
2018-3-28 10:41:28 [1522244488320] - debug: CORE - (constructor) _entering_
2018-3-28 10:41:28 [1522244488322] - debug: CORE - (constructor) ------- SDK INFORMATION -------
2018-3-28 10:41:28 [1522244488323] - info: CORE - (constructor) SDK version: 1.36.1
2018-3-28 10:41:28 [1522244488324] - info: CORE - (constructor) Node version: v8.9.4
2018-3-28 10:41:28 [1522244488324] - info: CORE - (constructor) http_parser version: 2.7.0
2018-3-28 10:41:28 [1522244488325] - info: CORE - (constructor) node version: 8.9.4
2018-3-28 10:41:28 [1522244488326] - info: CORE - (constructor) v8 version: 6.1.534.50
2018-3-28 10:41:28 [1522244488327] - info: CORE - (constructor) uv version: 1.15.0
2018-3-28 10:41:28 [1522244488328] - info: CORE - (constructor) zlib version: 1.2.11
2018-3-28 10:41:28 [1522244488329] - info: CORE - (constructor) ares version: 1.10.1-DEV
2018-3-28 10:41:28 [1522244488337] - info: CORE - (constructor) modules version: 57
2018-3-28 10:41:28 [1522244488339] - info: CORE - (constructor) nghttp2 version: 1.25.0
2018-3-28 10:41:28 [1522244488341] - info: CORE - (constructor) openssl version: 1.0.2n
2018-3-28 10:41:28 [1522244488342] - info: CORE - (constructor) icu version: 59.1
2018-3-28 10:41:28 [1522244488344] - info: CORE - (constructor) unicode version: 9.0
2018-3-28 10:41:28 [1522244488350] - info: CORE - (constructor) cldr version: 31.0.1
2018-3-28 10:41:28 [1522244488352] - info: CORE - (constructor) tz version: 2017b
2018-3-28 10:41:28 [1522244488353] - debug: CORE - (constructor) ------- SDK INFORMATION -------
2018-3-28 10:41:28 [1522244488356] - info: OPTIONS - (constructor) 'proxy' property is not defined. Use default: no proxy. Check the documentation to enable it
2018-3-28 10:41:28 [1522244488358] - debug: OPTIONS - (constructor) Use REST services on Rainbow Sandbox platform
2018-3-28 10:41:28 [1522244488362] - debug: OPTIONS - (constructor) Use XMPP services on Rainbow Sandbox platform
2018-3-28 10:41:28 [1522244488367] - info: CORE - (constructor) used in CLI mode
2018-3-28 10:41:28 [1522244488377] - debug: CORE - (constructor) _exiting_
2018-3-28 10:41:28 [1522244488379] - debug: CLI/SDK - (start) call startCLI
2018-3-28 10:41:28 [1522244488382] - debug: CORE - (start) _entering_
2018-3-28 10:41:28 [1522244488384] - debug: CORE - (start) start all modules
2018-3-28 10:41:28 [1522244488386] - debug: STATEMGR - (start) _entering_
2018-3-28 10:41:28 [1522244488388] - info: STATEMGR - (start) current state stopped
2018-3-28 10:41:28 [1522244488389] - debug: STATEMGR - (start) _exiting_
2018-3-28 10:41:28 [1522244488392] - debug: HTTP - (start) _entering_
2018-3-28 10:41:28 [1522244488394] - debug: HTTP - (start) host used sandbox.openrainbow.com
2018-3-28 10:41:28 [1522244488395] - info: HTTP - (start) REST URL https://sandbox.openrainbow.com:443
2018-3-28 10:41:28 [1522244488396] - debug: HTTP - (start) _exiting_
2018-3-28 10:41:28 [1522244488398] - debug: CPAAS - (start) _entering_
2018-3-28 10:41:28 [1522244488401] - debug: CPAAS - (authenticate) _entering_
2018-3-28 10:41:28 [1522244488404] - debug: CPAAS - (authenticate) Try to authenticate application 595a9fed159edbaee3aa4f88
2018-3-28 10:41:28 [1522244488407] - info: HTTP - (get) url https://sandbox.openrainbow.com:443/api/rainbow/applications/v1.0/authentication/login
- In progress, please wait...2018-3-28 10:41:29 [1522244489503] - info: HTTP - (get) HTTP code 200
2018-3-28 10:41:29 [1522244489507] - debug: CPAAS - (authenticate) Authentication is successful for application 595a9fed159edbaee3aa4f88
2018-3-28 10:41:29 [1522244489509] - debug: CPAAS - (authenticate) _exiting_
2018-3-28 10:41:29 [1522244489511] - debug: CPAAS - (start) _exiting_
2018-3-28 10:41:29 [1522244489514] - debug: CPAAS - (tokenSurvey) _enter_
2018-3-28 10:41:29 [1522244489518] - debug: CPAAS - (startTokenSurvey) - token countRenewed=0, maxTokenRenew=7, id=595a9fed159edbaee3aa4f88, name=Bot Demo, iat=1522244496, exp=1523540496
2018-3-28 10:41:29 [1522244489520] - info: CPAAS - (startTokenSurvey) start application token survey (expirationDate: Wed Apr 04 2018 22:41:36 GMT-0300 (Hora oficial do Brasil) currentDate:Wed Mar 28 2018 10:41:29 GMT-0300 (Hora oficial do Brasil) tokenExpirationDuration: 648006480ms usedExpirationDuration: 644406480ms)
2018-3-28 10:41:29 [1522244489522] - info: CPAAS - (startTokenSurvey) start a new timer for renewing application token in 644406480ms
2018-3-28 10:41:29 [1522244489523] - debug: REST - (start) _entering_
2018-3-28 10:41:29 [1522244489524] - info: REST - (start) email used ruben@intuitiva.net.br
2018-3-28 10:41:29 [1522244489525] - debug: REST - (start) _exiting_
2018-3-28 10:41:29 [1522244489526] - debug: XMPP - (start) _entering_
2018-3-28 10:41:29 [1522244489532] - info: XMPP - (start) XMPP connection blocked by configuration
2018-3-28 10:41:29 [1522244489533] - debug: XMPP - (start) _exiting_
2018-3-28 10:41:29 [1522244489534] - debug: IM - (start) _entering_
2018-3-28 10:41:29 [1522244489535] - debug: IM - (start) _exiting_
2018-3-28 10:41:29 [1522244489536] - debug: SETT - (start) _entering_
2018-3-28 10:41:29 [1522244489537] - debug: SETT - (start) _exiting_
2018-3-28 10:41:29 [1522244489538] - debug: PRES - (start) _entering_
2018-3-28 10:41:29 [1522244489539] - debug: PRES - (start) _exiting_
2018-3-28 10:41:29 [1522244489541] - debug: CONTACTS - (start) _entering_
2018-3-28 10:41:29 [1522244489542] - debug: CONTACTS - (start) _exiting_
2018-3-28 10:41:29 [1522244489544] - debug: BUBBLES - (start) _entering_
2018-3-28 10:41:29 [1522244489545] - debug: BUBBLES - (start) _exiting_
2018-3-28 10:41:29 [1522244489547] - debug: CHANNELS - (start) _entering_
2018-3-28 10:41:29 [1522244489548] - debug: CHANNELS - (start) _exiting_
2018-3-28 10:41:29 [1522244489550] - debug: GROUPS - (start) _entering_
2018-3-28 10:41:29 [1522244489552] - debug: GROUPS - (start) _exiting_
2018-3-28 10:41:29 [1522244489553] - debug: ADMIN - (start) _entering_
2018-3-28 10:41:29 [1522244489554] - debug: ADMIN - (start) _exiting_
2018-3-28 10:41:29 [1522244489556] - debug: FILESERVERSERVICE - (start) _entering_
2018-3-28 10:41:29 [1522244489556] - debug: CORE - (start) all modules started successfully
2018-3-28 10:41:29 [1522244489557] - info: STATEMGR - (transitTo) set state started
2018-3-28 10:41:29 [1522244489559] - info: EVENTS - (publish) event rainbow_onstarted
2018-3-28 10:41:29 [1522244489559] - debug: CORE - (start) _exiting_
2018-3-28 10:41:29 [1522244489562] - debug: CLI/SDK - (start) call startCLI successfull
2018-3-28 10:41:29 [1522244489565] - debug: execute action...
2018-3-28 10:41:29 [1522244489566] - debug: CLI/SDK - (signin)
2018-3-28 10:41:29 [1522244489566] - debug: CLI/SDK - (signin) call startCLI
2018-3-28 10:41:29 [1522244489568] - debug: CORE - (signin) _entering_
2018-3-28 10:41:29 [1522244489569] - debug: XMPP - (stop) _entering_
2018-3-28 10:41:29 [1522244489570] - debug: XMPP - (stop) nothing to stop
2018-3-28 10:41:29 [1522244489571] - debug: XMPP - (stop) _exiting_
2018-3-28 10:41:29 [1522244489574] - debug: REST - (signin) _entering_
2018-3-28 10:41:29 [1522244489575] - info: HTTP - (get) url https://sandbox.openrainbow.com:443/api/rainbow/authentication/v1.0/login
- In progress, please wait...2018-3-28 10:41:30 [1522244490415] - info: HTTP - (get) HTTP code 200
2018-3-28 10:41:30 [1522244490418] - info: REST - (signin) welcome Ruben Siegrist!
2018-3-28 10:41:30 [1522244490421] - debug: REST - (signin) information displayName=Ruben Siegrist, companyName=Intuitiva Tecnologia Ltda, loginEmail=ruben@intuitiva.net.br, language=en, companyId=5a5cab478bbe1492eda8e650, jid_im=fadb84539bef477b9cf8b121c7db8d2d@sandbox-all-in-one-prod-1.opentouch.cloud, jid_tel=tel_fadb84539bef477b9cf8b121c7db8d2d@sandbox-all-in-one-prod-1.opentouch.cloud, jid_password=a7825919bfbc436fa96a8950d4a4b075, userId=59ef89947adcbf344239dca5, loginEmail=olivier.anguenot@al-enterprise.com, country=BRA, jobTitle=Test Developer, nickName=ThisMyNickname, title=null, isTerminated=false, terminatedDate=null, timeToLiveDate=null, timeToLive=-1, lastPasswordUpdateDate=2018-01-15T19:15:30.677Z, lastExpiredTokenRenewedDate=null, lastLoginFailureDate=null, failedLoginAttempts=0, loggedSince=2018-03-28T13:41:37.792Z, lastLoginDate=2018-03-28T13:41:37.792Z, firstLoginDate=2018-01-15T19:15:31.985Z, createdByAppId=null, createdBySelfRegister=false, lastAvatarUpdateDate=2018-01-15T19:17:05.740Z, lastUpdateDate=2018-02-08T10:41:48.865Z, initializationDate=2018-01-15T19:17:06.093Z, isInitialized=true, activationDate=2018-01-15T13:23:19.607Z, creationDate=2018-01-15T13:23:19.607Z, siteId=null, organisationId=null, visibility=private, profiles=[subscriptionId=5a5cab478bbe1492eda8e651, offerId=5820e7e046f3ee860b2564ca, offerName=Essential, profileId=5820e7e046f3ee860b2564c9, profileName=Essential, offerDescription=Rainbow Essential, offerTechnicalDescription=Essential, offerReference=RB-Essential, isPrepaid=false, isExclusive=false, canBeSold=false, provisioningNeeded=[], assignationDate=2018-01-15T13:23:19.613Z, status=active, isDefault=true], accountType=free, adminType=company_admin, roles=[user, admin], isActive=true, phoneNumbers=[], emails=[email=ruben@intuitiva.net.br, type=work], lastName=Siegrist, firstName=Ruben, id=5a5cab478bbe1492eda8e652, isInDefaultCompany=false, isADSearchAvailable=false
2018-3-28 10:41:30 [1522244490425] - debug: REST - (signin) _exiting_
2018-3-28 10:41:30 [1522244490428] - debug: CORE - (signin) signed in successfully
2018-3-28 10:41:30 [1522244490435] - debug: CORE - (signin) _exiting_
2018-3-28 10:41:30 [1522244490437] - debug: CORE - (tokenSurvey) _enter_
2018-3-28 10:41:30 [1522244490439] - info: CORE - (tokenSurvey) No token survey in CLI mode
2018-3-28 10:41:30 [1522244490441] - info: STATEMGR - (transitTo) set state connected
2018-3-28 10:41:30 [1522244490442] - info: EVENTS - (publish) event rainbow_onconnected
2018-3-28 10:41:30 [1522244490449] - info: STATEMGR - (transitTo) set state ready
2018-3-28 10:41:30 [1522244490451] - info: EVENTS - (publish) event rainbow_onready
2018-3-28 10:41:30 [1522244490453] - debug: CLI/SDK - (signin) call startCLI successfull
2018-3-28 10:41:30 [1522244490458] - debug: action done... token=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJjb3VudFJlbmV3ZWQiOjAsIm1heFRva2VuUmVuZXciOjcsInVzZXIiOnsiaWQiOiI1YTVjYWI0NzhiYmUxNDkyZWRhOGU2NTIiLCJsb2dpbkVtYWlsIjoicnViZW5AaW50dWl0aXZhLm5ldC5iciJ9LCJpYXQiOjE1MjIyNDQ0OTcsImV4cCI6MTUyMzU0MDQ5N30.KwgHinjE02j_y__0LYYxgDeeo_WrlZesrY_N7bd-E4pIJukwDVl8MQwXT0XEAYjGCpGuOwUGAoDefn5iuzVMf4EC1yqyp1rszwrLFjLANXa7pa3pxAnvCVg6eme9Xh5MutSJgzkr7OjH23vF7r430y7OJx0soIy00ZujtN1SRTQp_oNzz7MtFJUPjb6V79BzUyduLgRrEAnnsFHqvuqAFPu8QEg5XktfXtvPfGQMUdqDW1UJ10hDZ5iOMS92YdB-jHndZt8PDVr4N7o7VgHToTVygQIW-FdimxGHKw-tC1J7UOq6mMBRZokLIzuZzuMdQ08iSoXcqWnQnkpjyykAgg, displayName=Ruben Siegrist, companyName=Intuitiva Tecnologia Ltda, loginEmail=ruben@intuitiva.net.br, language=en, companyId=5a5cab478bbe1492eda8e650, jid_im=fadb84539bef477b9cf8b121c7db8d2d@sandbox-all-in-one-prod-1.opentouch.cloud, jid_tel=tel_fadb84539bef477b9cf8b121c7db8d2d@sandbox-all-in-one-prod-1.opentouch.cloud, jid_password=a7825919bfbc436fa96a8950d4a4b075, userId=59ef89947adcbf344239dca5, loginEmail=olivier.anguenot@al-enterprise.com, country=BRA, jobTitle=Test Developer, nickName=ThisMyNickname, title=null, isTerminated=false, terminatedDate=null, timeToLiveDate=null, timeToLive=-1, lastPasswordUpdateDate=2018-01-15T19:15:30.677Z, lastExpiredTokenRenewedDate=null, lastLoginFailureDate=null, failedLoginAttempts=0, loggedSince=2018-03-28T13:41:37.792Z, lastLoginDate=2018-03-28T13:41:37.792Z, firstLoginDate=2018-01-15T19:15:31.985Z, createdByAppId=null, createdBySelfRegister=false, lastAvatarUpdateDate=2018-01-15T19:17:05.740Z, lastUpdateDate=2018-02-08T10:41:48.865Z, initializationDate=2018-01-15T19:17:06.093Z, isInitialized=true, activationDate=2018-01-15T13:23:19.607Z, creationDate=2018-01-15T13:23:19.607Z, siteId=null, organisationId=null, visibility=private, profiles=[subscriptionId=5a5cab478bbe1492eda8e651, offerId=5820e7e046f3ee860b2564ca, offerName=Essential, profileId=5820e7e046f3ee860b2564c9, profileName=Essential, offerDescription=Rainbow Essential, offerTechnicalDescription=Essential, offerReference=RB-Essential, isPrepaid=false, isExclusive=false, canBeSold=false, provisioningNeeded=[], assignationDate=2018-01-15T13:23:19.613Z, status=active, isDefault=true], accountType=free, adminType=company_admin, roles=[user, admin], isActive=true, phoneNumbers=[], emails=[email=ruben@intuitiva.net.br, type=work], lastName=Siegrist, firstName=Ruben, id=5a5cab478bbe1492eda8e652, isInDefaultCompany=false, isADSearchAvailable=false
✓ Command successfully completed
Signed in as 'ruben@intuitiva.net.br'
2018-3-28 10:41:30 [1522244490474] - debug: save credentials...
2018-3-28 10:41:30 [1522244490476] - debug: credentials saved!
2018-3-28 10:41:30 [1522244490477] - debug: finished!
_
___________________________________________________________________________
-
Comentario oficial
Hi Ruben,
Please refer to the manual: https://hub.openrainbow.com/#/documentation/doc/cli/Getting_started
Here you logged in -> OK
Then you may type
rbw <command> [<option>...]For example, to see existing commands for your logged in user:
rbw commandsBest regards, Pascal
Acciones de comentarios -
Pascal,
As i wrote before, i can't do nothing after login, because the CLI interface becomes frozen!
(I already used CLI before, many times, taking advantage of a lot of commands available!)
Please see screenshot below:

Please verify that the cursor is intermittent, but not showing the standard command line head
"" C:\Users\ruben> ""
By the other hand, I got successful access to openrainbow.com:
"" ✓ Command successfully completed
Signed in as 'ruben@intuitiva.net.br'
2018-3-29 10:52:22 [1522331542378] - debug: save credentials...
2018-3-29 10:52:22 [1522331542380] - debug: credentials saved!
2018-3-29 10:52:22 [1522331542383] - debug: finished!C:\Users\ruben> ""
Any problem with sandbox? Or with the CLI? Or the 'standard' domain CLI connects by default?
Kind regards,
Ruben
-
Sorry we didn't get that the CLI was frozen for you.
Could you please update to 1.38 ? (https://www.npmjs.com/package/rainbow-cli)
I saw you were in 1.36 in your logs.Edit:
I tested and it worked for me with an user
C:\Users\Pascal>rbw login arfy@arfy.fr <pass> --host sandbox.openrainbow.com
Welcome to Rainbow CLI
Version 1.38.0
✓ Command successfully completed
Signed in as 'arfy@arfy.fr'
Iniciar sesión para dejar un comentario.
Comentarios
4 comentarios