Comments (2)
Errors sometimes logged this way:
2018-08-07T00:50:30+0000 [ERROR] uncaughtException: Cannot read property 'authenticate' of undefined
{"date":"Tue Aug 07 2018 00:50:30 GMT+0000 (UTC)","process":{"pid":7690,"uid":495,"gid":495,"cwd":"/home/node","execPath":"/opt/node-v9.9.0-linux-x64/bin/node","version":"v9.9.0","argv":["/opt/node-v9.9.0-linux-x64/bin/node","/opt/gluu/node/passport/server/app.js","start-log-file=/opt/gluu/node/passport/server/logs/start.log"],"memoryUsage":{"rss":58392576,"heapTotal":60649472,"heapUsed":24979624,"external":170712}},"os":{"loadavg":[0,0.00244140625,0.0517578125],"uptime":1386},"trace":[{"column":22,"file":"/opt/gluu/node/passport/server/routes/index.js","function":null,"line":273,"method":null,"native":false},{"column":30,"file":"module.js","function":"Module._compile","line":649,"method":"_compile","native":false},{"column":10,"file":"module.js","function":"Module._extensions..js","line":660,"method":".js","native":false},{"column":32,"file":"module.js","function":"Module.load","line":561,"method":"load","native":false},{"column":12,"file":"module.js","function":"tryModuleLoad","line":501,"method":null,"native":false},{"column":3,"file":"module.js","function":"Module._load","line":493,"method":"_load","native":false},{"column":17,"file":"module.js","function":"Module.require","line":593,"method":"require","native":false},{"column":18,"file":"internal/module.js","function":"require","line":11,"method":null,"native":false},{"column":22,"file":"/opt/gluu/node/passport/server/app.js","function":null,"line":90,"method":null,"native":false},{"column":30,"file":"module.js","function":"Module._compile","line":649,"method":"_compile","native":false},{"column":10,"file":"module.js","function":"Module._extensions..js","line":660,"method":".js","native":false},{"column":32,"file":"module.js","function":"Module.load","line":561,"method":"load","native":false},{"column":12,"file":"module.js","function":"tryModuleLoad","line":501,"method":null,"native":false},{"column":3,"file":"module.js","function":"Module._load","line":493,"method":"_load","native":false},{"column":10,"file":"module.js","function":"Module.runMain","line":690,"method":"runMain","native":false},{"column":16,"file":"bootstrap_node.js","function":"startup","line":194,"method":null,"native":false},{"column":3,"file":"bootstrap_node.js","function":null,"line":666,"method":null,"native":false}],"stack":["TypeError: Cannot read property 'authenticate' of undefined"," at Object.<anonymous> (/opt/gluu/node/passport/server/routes/index.js:273:22)"," at Module._compile (module.js:649:30)"," at Object.Module._extensions..js (module.js:660:10)"," at Module.load (module.js:561:32)"," at tryModuleLoad (module.js:501:12)"," at Function.Module._load (module.js:493:3)"," at Module.require (module.js:593:17)"," at require (internal/module.js:11:18)"," at Object.<anonymous> (/opt/gluu/node/passport/server/app.js:90:22)"," at Module._compile (module.js:649:30)"," at Object.Module._extensions..js (module.js:660:10)"," at Module.load (module.js:561:32)"," at tryModuleLoad (module.js:501:12)"," at Function.Module._load (module.js:493:3)"," at Function.Module.runMain (module.js:690:10)"," at startup (bootstrap_node.js:194:16)"," at bootstrap_node.js:666:3"]}
It suffices (and would be neater) this way:
TypeError: Cannot read property 'authenticate' of undefined
at Object.<anonymous> (/opt/gluu/node/passport/server/routes/index.js:273:22)
at Module._compile (module.js:649:30)
at Object.Module._extensions..js (module.js:660:10)
at Module.load (module.js:561:32)
at tryModuleLoad (module.js:501:12)
at Function.Module._load (module.js:493:3)
at Module.require (module.js:593:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/opt/gluu/node/passport/server/app.js:90:22)
at Module._compile (module.js:649:30)
at Object.Module._extensions..js (module.js:660:10)
at Module.load (module.js:561:32)
at tryModuleLoad (module.js:501:12)
at Function.Module._load (module.js:493:3)
at Function.Module.runMain (module.js:690:10)
at startup (bootstrap_node.js:194:16)
at bootstrap_node.js:666:3
from gluu-passport.
closign this, more logging issues appeared
from gluu-passport.
Related Issues (20)
- Passport logs printing wrong datetime
- Add support to configure production.js params using envs HOT 1
- Rate-limiting settings being loaded from `node-config` instead of application HOT 2
- remove rate-limit feat - patch HOT 2
- Validator `configDiscovery.validate` is returning data instead of if data is valid or not
- logging "dateTime" test is misplaced and has no action trigger HOT 4
- Invalid Signature error throws browser in redirect loop HOT 2
- update node engines in package.json as per openid-client 5.1.1 requirements
- Upgrade project to use ESM imports HOT 1
- passport-oauth2 moderate severity vulnerability
- Not able to authenticate when using cache provider
- update node version to support latest alpine 3.16 for CN
- feat: allow rate limit settings to be loaded from env
- Passport social login failed. HOT 3
- SAML authn response signature validation bypass due vulnerable component HOT 2
- deprecated packages found in Gluu-server 4.5.0 build HOT 2
- passport-tumblr is unmaintained for 10 years
- `passport-oxd` is deprecated
- fix: extra scope are not sending in passport HOT 2
- PR #547 introduced SAML `inResponseTo` validation related security issue and didn't add notes about other breaking changes to user documentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gluu-passport.