rsdevigo / jungle

A GUI for Kong Admin API - http://getkong.org/
Apache License 2.0
125 stars 27 forks source link

Not able to connect jungle to a Kong instance #16

Closed debraj-manna closed 8 years ago

debraj-manna commented 8 years ago

I have a Kong instance running in a host named kong-dev. Its admin port is 8001. So all the apis can be viewed by the url http://kong-dev:8001/apis.

I have modified In ./modules/core/config/core.client.constants.js & set KONGURL to http://kong-dev:8001/apis

angular.module('core').value('KONGURL', 'http://kong-dev:8001/apis/');

But then on hitting the http://localhost:3000 I am seeing a blank page and seeing the below error in JS Console:-

Error: [$injector:modulerr] Failed to instantiate module jungle due to:
[$injector:modulerr] Failed to instantiate module ngStorage due to:
[$injector:nomod] Module 'ngStorage' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.2.29/$injector/nomod?p0=ngStorage
minErr/<@http://localhost:3000/lib/angular/angular.js:78:12
module/<@http://localhost:3000/lib/angular/angular.js:1679:1
ensure@http://localhost:3000/lib/angular/angular.js:1603:38
module@http://localhost:3000/lib/angular/angular.js:1677:1
loadModules/<@http://localhost:3000/lib/angular/angular.js:3879:22
forEach@http://localhost:3000/lib/angular/angular.js:325:9
loadModules@http://localhost:3000/lib/angular/angular.js:3873:5
loadModules/<@http://localhost:3000/lib/angular/angular.js:3880:40
forEach@http://localhost:3000/lib/angular/angular.js:325:9
loadModules@http://localhost:3000/lib/angular/angular.js:3873:5
createInjector@http://localhost:3000/lib/angular/angular.js:3813:11
bootstrap/doBootstrap@http://localhost:3000/lib/angular/angular.js:1446:20
bootstrap@http://localhost:3000/lib/angular/angular.js:1461:1
@http://localhost:3000/application.js:19:2
trigger@http://localhost:3000/lib/angular/angular.js:2575:7
createEventHandler/eventHandler/<@http://localhost:3000/lib/angular/angular.js:2855:7
forEach@http://localhost:3000/lib/angular/angular.js:325:9
createEventHandler/eventHandler@http://localhost:3000/lib/angular/angular.js:2854:5

http://errors.angularjs.org/1.2.29/$injector/modulerr?p0=ngStorage&p1=%5B%24injector%3Anomod%5D%20Module%20'ngStorage'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.2.29%2F%24injector%2Fnomod%3Fp0%3DngStorage%0AminErr%2F%3C%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A78%3A12%0Amodule%2F%3C%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A1679%3A1%0Aensure%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A1603%3A38%0Amodule%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A1677%3A1%0AloadModules%2F%3C%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A3879%3A22%0AforEach%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A325%3A9%0AloadModules%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A3873%3A5%0AloadModules%2F%3C%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A3880%3A40%0AforEach%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A325%3A9%0AloadModules%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A3873%3A5%0AcreateInjector%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A3813%3A11%0Abootstrap%2FdoBootstrap%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A1446%3A20%0Abootstrap%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A1461%3A1%0A%40http%3A%2F%2Flocalhost%3A3000%2Fapplication.js%3A19%3A2%0Atrigger%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A2575%3A7%0AcreateEventHandler%2FeventHandler%2F%3C%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A2855%3A7%0AforEach%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A325%3A9%0AcreateEventHandler%2FeventHandler%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A2854%3A5%0A
minErr/<@http://localhost:3000/lib/angular/angular.js:78:12
loadModules/<@http://localhost:3000/lib/angular/angular.js:3907:15
forEach@http://localhost:3000/lib/angular/angular.js:325:9
loadModules@http://localhost:3000/lib/angular/angular.js:3873:5
loadModules/<@http://localhost:3000/lib/angular/angular.js:3880:40
forEach@http://localhost:3000/lib/angular/angular.js:325:9
loadModules@http://localhost:3000/lib/angular/angular.js:3873:5
createInjector@http://localhost:3000/lib/angular/angular.js:3813:11
bootstrap/doBootstrap@http://localhost:3000/lib/angular/angular.js:1446:20
bootstrap@http://localhost:3000/lib/angular/angular.js:1461:1
@http://localhost:3000/application.js:19:2
trigger@http://localhost:3000/lib/angular/angular.js:2575:7
createEventHandler/eventHandler/<@http://localhost:3000/lib/angular/angular.js:2855:7
forEach@http://localhost:3000/lib/angular/angular.js:325:9
createEventHandler/eventHandler@http://localhost:3000/lib/angular/angular.js:2854:5

http://errors.angularjs.org/1.2.29/$injector/modulerr?p0=jungle&p1=%5B%24injector%3Amodulerr%5D%20Failed%20to%20instantiate%20module%20ngStorage%20due%20to%3A%0A%5B%24injector%3Anomod%5D%20Module%20'ngStorage'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.2.29%2F%24injector%2Fnomod%3Fp0%3DngStorage%0AminErr%2F%3C%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A78%3A12%0Amodule%2F%3C%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A1679%3A1%0Aensure%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A1603%3A38%0Amodule%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A1677%3A1%0AloadModules%2F%3C%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A3879%3A22%0AforEach%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A325%3A9%0AloadModules%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A3873%3A5%0AloadModules%2F%3C%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A3880%3A40%0AforEach%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A325%3A9%0AloadModules%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A3873%3A5%0AcreateInjector%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A3813%3A11%0Abootstrap%2FdoBootstrap%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A1446%3A20%0Abootstrap%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A1461%3A1%0A%40http%3A%2F%2Flocalhost%3A3000%2Fapplication.js%3A19%3A2%0Atrigger%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A2575%3A7%0AcreateEventHandler%2FeventHandler%2F%3C%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A2855%3A7%0AforEach%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A325%3A9%0AcreateEventHandler%2FeventHandler%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A2854%3A5%0A%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.2.29%2F%24injector%2Fmodulerr%3Fp0%3DngStorage%26p1%3D%255B%2524injector%253Anomod%255D%2520Module%2520'ngStorage'%2520is%2520not%2520available!%2520You%2520either%2520misspelled%2520the%2520module%2520name%2520or%2520forgot%2520to%2520load%2520it.%2520If%2520registering%2520a%2520module%2520ensure%2520that%2520you%2520specify%2520the%2520dependencies%2520as%2520the%2520second%2520argument.%250Ahttp%253A%252F%252Ferrors.angularjs.org%252F1.2.29%252F%2524injector%252Fnomod%253Fp0%253DngStorage%250AminErr%252F%253C%2540http%253A%252F%252Flocalhost%253A3000%252Flib%252Fangular%252Fangular.js%253A78%253A12%250Amodule%252F%253C%2540http%253A%252F%252Flocalhost%253A3000%252Flib%252Fangular%252Fangular.js%253A1679%253A1%250Aensure%2540http%253A%252F%252Flocalhost%253A3000%252Flib%252Fangular%252Fangular.js%253A1603%253A38%250Amodule%2540http%253A%252F%252Flocalhost%253A3000%252Flib%252Fangular%252Fangular.js%253A1677%253A1%250AloadModules%252F%253C%2540http%253A%252F%252Flocalhost%253A3000%252Flib%252Fangular%252Fangular.js%253A3879%253A22%250AforEach%2540http%253A%252F%252Flocalhost%253A3000%252Flib%252Fangular%252Fangular.js%253A325%253A9%250AloadModules%2540http%253A%252F%252Flocalhost%253A3000%252Flib%252Fangular%252Fangular.js%253A3873%253A5%250AloadModules%252F%253C%2540http%253A%252F%252Flocalhost%253A3000%252Flib%252Fangular%252Fangular.js%253A3880%253A40%250AforEach%2540http%253A%252F%252Flocalhost%253A3000%252Flib%252Fangular%252Fangular.js%253A325%253A9%250AloadModules%2540http%253A%252F%252Flocalhost%253A3000%252Flib%252Fangular%252Fangular.js%253A3873%253A5%250AcreateInjector%2540http%253A%252F%252Flocalhost%253A3000%252Flib%252Fangular%252Fangular.js%253A3813%253A11%250Abootstrap%252FdoBootstrap%2540http%253A%252F%252Flocalhost%253A3000%252Flib%252Fangular%252Fangular.js%253A1446%253A20%250Abootstrap%2540http%253A%252F%252Flocalhost%253A3000%252Flib%252Fangular%252Fangular.js%253A1461%253A1%250A%2540http%253A%252F%252Flocalhost%253A3000%252Fapplication.js%253A19%253A2%250Atrigger%2540http%253A%252F%252Flocalhost%253A3000%252Flib%252Fangular%252Fangular.js%253A2575%253A7%250AcreateEventHandler%252FeventHandler%252F%253C%2540http%253A%252F%252Flocalhost%253A3000%252Flib%252Fangular%252Fangular.js%253A2855%253A7%250AforEach%2540http%253A%252F%252Flocalhost%253A3000%252Flib%252Fangular%252Fangular.js%253A325%253A9%250AcreateEventHandler%252FeventHandler%2540http%253A%252F%252Flocalhost%253A3000%252Flib%252Fangular%252Fangular.js%253A2854%253A5%250A%0AminErr%2F%3C%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A78%3A12%0AloadModules%2F%3C%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A3907%3A15%0AforEach%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A325%3A9%0AloadModules%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A3873%3A5%0AloadModules%2F%3C%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A3880%3A40%0AforEach%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A325%3A9%0AloadModules%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A3873%3A5%0AcreateInjector%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A3813%3A11%0Abootstrap%2FdoBootstrap%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A1446%3A20%0Abootstrap%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A1461%3A1%0A%40http%3A%2F%2Flocalhost%3A3000%2Fapplication.js%3A19%3A2%0Atrigger%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A2575%3A7%0AcreateEventHandler%2FeventHandler%2F%3C%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A2855%3A7%0AforEach%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A325%3A9%0AcreateEventHandler%2FeventHandler%40http%3A%2F%2Flocalhost%3A3000%2Flib%2Fangular%2Fangular.js%3A2854%3A5%0A

After seeing the error ngStorage not found. I executed the below command:-

j@j-1383:~/code/github.com/jungle$ bower install ngstorage
bower ngstorage#*               cached git://github.com/gsklee/ngStorage.git#0.3.9
bower ngstorage#*             validate 0.3.9 against git://github.com/gsklee/ngStorage.git#*
bower ngstorage#~0.3.9         install ngstorage#0.3.9

ngstorage#0.3.9 lib/ngstorage
└── angular#1.2.29

But still getting the same error

Environment

allenmoatallen commented 8 years ago

I too am seeing the same error.

EDIT: It appears it looks for ngstorage.js but the filename is ngStorage.js with a capital S.

rsdevigo commented 8 years ago

So guys, I merge the changes, and thanks guys for help us.