Apigee edgemicro 2.5.11 Configure Micrograteway Error deployProxyWithPassword is not defined

When I run this command

Configure Edge microgateway

edgemicro configure -o "your-orgname" -e "your-envname" -u "your-username"

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff; min-height: 13.0px} span.s1 {font-variant-ligatures: no-common-ligatures}

current nodejs version is v8.0.0

current edgemicro version is 2.5.11

password:

file doesn't exist, setting up

/home/ec2-user/.nvm/versions/node/v8.0.0/lib/node_modules/edgemicro/cli/lib/deploy-auth.js:95

deployProxyWithPassword(managementUri,authUri, options, dir, (err,uri)=>{

^

ReferenceError: deployProxyWithPassword is not defined

at /home/ec2-user/.nvm/versions/node/v8.0.0/lib/node_modules/edgemicro/cli/lib/deploy-auth.js:95:5

at /home/ec2-user/.nvm/versions/node/v8.0.0/lib/node_modules/edgemicro/node_modules/async/lib/async.js:718:13

at iterate (/home/ec2-user/.nvm/versions/node/v8.0.0/lib/node_modules/edgemicro/node_modules/async/lib/async.js:262:13)

at /home/ec2-user/.nvm/versions/node/v8.0.0/lib/node_modules/edgemicro/node_modules/async/lib/async.js:274:29

at /home/ec2-user/.nvm/versions/node/v8.0.0/lib/node_modules/edgemicro/node_modules/async/lib/async.js:44:16

at /home/ec2-user/.nvm/versions/node/v8.0.0/lib/node_modules/edgemicro/node_modules/async/lib/async.js:723:17

at /home/ec2-user/.nvm/versions/node/v8.0.0/lib/node_modules/edgemicro/node_modules/async/lib/async.js:167:37

at next (/home/ec2-user/.nvm/versions/node/v8.0.0/lib/node_modules/edgemicro/node_modules/rimraf/rimraf.js:75:7)

at CB (/home/ec2-user/.nvm/versions/node/v8.0.0/lib/node_modules/edgemicro/node_modules/rimraf/rimraf.js:111:9)

at /home/ec2-user/.nvm/versions/node/v8.0.0/lib/node_modules/edgemicro/node_modules/rimraf/rimraf.js:137:14

at FSReqWrap.oncomplete (fs.js:152:21)

Solved Solved
0 7 451
1 ACCEPTED SOLUTION

This Solution from Ludovic Worked

Under the installation folder node_modules\edgemicro\cli\lib, i have edited the file

deploy-auth.js

On line 183, i have put the following declaration in comment:

//Deployment.prototype.deployProxyWithPassword =

Therefore my line 184 looks like:

function deployProxyWithPassword(managementUri,authUri, options, dir, callback) {

I hope Apigee support can fix it in a better way.

View solution in original post

7 REPLIES 7

Same problem i am also facing while configuring it in window 10 home edition .

Not applicable

Try passing password flag -p to see if it works. It seems an environment-specific issue with the code that reads the password. If you're concern is leaking your password, you can save it in a temporary variable and pass it as -p $my_password_var.

It doesnt help. It gives me the same error

Good finding thanks for for posting.

This Solution from Ludovic Worked

Under the installation folder node_modules\edgemicro\cli\lib, i have edited the file

deploy-auth.js

On line 183, i have put the following declaration in comment:

//Deployment.prototype.deployProxyWithPassword =

Therefore my line 184 looks like:

function deployProxyWithPassword(managementUri,authUri, options, dir, callback) {

I hope Apigee support can fix it in a better way.

Former Community Member
Not applicable

I confirm this is a bug. I will open an issue on Git. Will fix this for 2.5.12.

Former Community Member
Not applicable

Please try with Microgateway 2.5.12. To install or upgrade to this version run

npm install -g edgemicro

or

npm install -g -f edgemicro