Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

paramenter -t and -d is not working for cli comand edgemicro private configure #197

Open
Kittiman opened this issue Oct 24, 2018 · 4 comments

Comments

@Kittiman
Copy link

Kittiman commented Oct 24, 2018

According to documentation https://docs.apigee.com/api-platform/microgateway/2.5.x/cli-reference-edge-microgateway section Configuring Edge Microgateway for Apigee Edge Private Cloud it should be possible to use a OAuth token for authentication instead of username/password.

But when using an error message: unknown option `-t' is thrown.

Using version: 2.5.26

I also tested with version 2.5.27-beta where to -t / --token is available. But it seams like it is not fully implemented for the edgemicro private configuration.

@anshul07
Copy link

anshul07 commented Nov 14, 2018

@srinandan we are also facing a similar issue in the public cloud. We are getting 401 when we pass the token to edgemicro configure command.

Sample command:
edgemicro configure -o orgname -e environment -t <oauth token>

Error:
_current nodejs version is v6.9.2
current edgemicro version is 2.5.27
file doesn't exist, setting up
Error: HTTP error 401
at Request.callback (/Users/anshula/.nvm/versions/node/v6.9.2/lib/node_modules/edgemicro/node_modules/apigeetool/lib/commands/listdeployments.js:93:12)
at Request.self.callback (/Users/anshula/.nvm/versions/node/v6.9.2/lib/node_modules/edgemicro/node_modules/request/request.js:185:22)
at emitTwo (events.js:106:13)

edgemicro version: 2.5.27

@Kittiman
Copy link
Author

Hi,

I did look in to the code of version 2.5.27-beta and there are some functions missing the if statemen when a token is provided and not username/password

@srinandan
Copy link
Contributor

Can you please try with 2.5.28? I believe this issue is now addressed.

@smitarani
Copy link

Even with 2.5.28 having the same issue. Please suggest if someone find the solution
Error:
current nodejs version is v6.9.1
current edgemicro version is 2.5.28
file doesn't exist, setting up
Error: HTTP error 401
at Request._callback (/root/.nvm/versions/node/v6.9.1/lib/node_modules/edgemicro/node_modules/apigeetool/lib/commands/listdeployments.js:93:12)
at Request.self.callback (/root/.nvm/versions/node/v6.9.1/lib/node_modules/edgemicro/node_modules/request/request.js:185:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request. (/root/.nvm/versions/node/v6.9.1/lib/node_modules/edgemicro/node_modules/request/request.js:1161:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at IncomingMessage. (/root/.nvm/versions/node/v6.9.1/lib/node_modules/edgemicro/node_modules/request/request.js:1083:12)
at IncomingMessage.g (events.js:291:16)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants