ryanjdew / ml-slush-discovery-app

Quick up and running app for exploring MarkLogic data, based off of the marklogic-node slush template
Other
9 stars 7 forks source link

Login issue from local browser #107

Open mahaboob opened 6 years ago

mahaboob commented 6 years ago

We have deployed this POC in our server (VM) and trying to access the application from our local browser.

We are able to access the application and when we try to login, then it is crashing. Please find the below logs.

Note: When we try to login from server it is working. This issue only happening from outside of the server. GET /api/server/ui-config 404 4.578 ms - 244 GET /images/marklogic.png 304 0.394 ms - - C:\Users\Administrator\Documents\GitHub\ml-slush-discovery-app\node_modules\www-authenticate\lib\user-credentials.js:8 if (username.is_user_credentials && ^

TypeError: Cannot read property 'is_user_credentials' of null at user_credentials (C:\Users\Administrator\Documents\GitHub\ml-slush-discovery-app\node_modules\www-authenticate\lib\user-credentials.js:8:16) at www_authenticator (C:\Users\Administrator\Documents\GitHub\ml-slush-discovery-app\node_modules\www-authenticate\lib\www-authenticate.js:36:20) at createAuthenticator (C:\Users\Administrator\Documents\GitHub\ml-slush-discovery-app\node-server\auth-helper.js:51:40) at ClientRequest. (C:\Users\Administrator\Documents\GitHub\ml-slush-discovery-app\node-server\auth-helper.js:114:25) at Object.onceWrapper (events.js:315:30) at emitOne (events.js:116:13) at ClientRequest.emit (events.js:211:7) at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:544:21) at HTTPParser.parserOnHeadersComplete (_http_common.js:117:17) at Socket.socketOnData (_http_client.js:440:20) [09:40:56] nodemon crashed: script crashed for some reason [09:40:56] [nodemon] app crashed - waiting for file changes before starting... [09:42:38] The following tasks did not complete: serve-local, [09:42:38] Did you forget to signal async completion? [09:42:38] nodemon exited cleanly

Thank you Mahaboob Mulla

ryanjdew commented 6 years ago

Thank you for submitting this issue. I believe the fix for this issue was addressed in commit 0c0b78d6c2723422ef04e0ddb849e52161f2f698. If you continue to have issues after replacing the node-server/auth-helper.js with the latest from master, please let me know and I'll investigate further.