Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'length' of undefined #96

Open
ChristianMok opened this issue Mar 3, 2021 · 1 comment
Open

Cannot read property 'length' of undefined #96

ChristianMok opened this issue Mar 3, 2021 · 1 comment

Comments

@ChristianMok
Copy link

Hi there!
I am getting this error message every 4 or 5 days. I don't know the causes of this problem, it is working perfectly most of the time. The error message is
`C:\Program Files\iisnode\www\DirApi2\node_modules\node-sp-auth\lib\src\auth\reso
lvers\OnlineUserCredentials.js:55
for (let i = 0; i < response.headers['set-cookie'].length; i++) {
^
TypeError: Cannot read property 'length' of undefined
at C:\Program Files\iisnode\www\DirApi2\node_modules\node-sp-auth\lib\src\au
th\resolvers\OnlineUserCredentials.js:55:64
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:93:5)
npm ERR! code 1
npm ERR! path C:\Program Files\iisnode\www\DirApi2
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c "node index.js"

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\cmo\AppData\Local\npm-cache_logs\2021-03-03T17_46_23_611Z
-debug.log`

Can you help me? and How can I avoid this? This problem will cause the express down, so the app is down. Thank you

@ChristianMok
Copy link
Author

I am using SAML based with user credentials

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant