Cannot read property 'data' of undefined
See original GitHub issueHi. I installed the server via helm and I am receiving the error from title after ldap login.
Version:
# helm -n auth-server list
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
auth-server auth-server 3 2020-01-15 10:12:52.779433674 +0100 CET deployed external-auth-server-0.1.0 1.0
Relevang logs:
{"service":"external-auth-server","level":"verbose","message":"ldap userinfo: undefined"}
{"level":"error","service":"external-auth-server","message":"Cannot read property 'data' of undefined","stack":"TypeError: Cannot read property 'data' of undefined\n at LdapPlugin.verify (/home/eas/app/src/plugin/ldap/index.js:115:30)\n at process._tickCallback (internal/process/next_tick.js:68:7)"}
{"service":"external-auth-server","level":"info","message":"end verify pipeline with status: 503"}
maybe the check: https://github.com/travisghansen/external-auth-server/blob/c4d9bec302513511271f52dc6be887cb0c6e8f3c/src/plugin/ldap/index.js#L112
should be userinfo != null instead of userinfo !== null?
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
angularjs - typeerror cannot read property 'data' of undefined
This error comes because there is no property of name data in your class. $scope.gridOptions. this class ...
Read more >[SOLVED] Cannot Read Property of Undefined in JavaScript
The “cannot read property of undefined” error occurs when you attempt to access a property or method of a variable that is undefined...
Read more >TypeError: Cannot read property 'data' of undefined
[0] (node:24430) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async ...
Read more >Cannot read property 'data' of undefined #1463 - GitHub
Describe the bug Loading for my profile seems to be broken. In the defense of this project though, I have a bit of...
Read more >Cannot read property 'data' of undefined in React web
Like Nuno said, it means that the JavaScript running on the device / browser is acting on invalid elements. In another words, this...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Ok that must be the difference. Redis cache backend vs in memory and how they return data. I’ll have a look and audit the rest of the code in the project for the same kind of issue.
Thanks!
Thanks for the contribution! I’ll review after some sleep and we’ll get it all fixed up for ya.