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

next is not a function #78

Open
CC-Derek opened this issue Jun 13, 2022 · 2 comments
Open

next is not a function #78

CC-Derek opened this issue Jun 13, 2022 · 2 comments

Comments

@CC-Derek
Copy link

I'm getting next() is not a function in response to a SAML auth

/me//git/saml-idp/node_modules/samlp/lib/samlp.js:146
        if (err) return next(err);
                        ^

TypeError: next is not a function
    at <redacted>/node_modules/samlp/lib/samlp.js:146:25
    at <redacted>/node_modules/samlp/lib/samlp.js:94:21
    at Immediate.<anonymous> (<redacted>/node_modules/saml/lib/utils.js:13:7)
    at process.processImmediate (node:internal/timers:471:21)

I'm on Node.js v18.3.0

I'm getting 304 redirects through the auth chain, but then at the end it's throwing the error. I see no indication in the output as to why. I saw a previous thread from several years ago about some decompression, but there was no solution indicated in that thread.

How do I troubleshoot/fix this?

@ASCRees
Copy link

ASCRees commented Jun 30, 2022

I have the same issue with node.js 16.15.1 LTS. Are there any suggestions for this?

@CC-Derek
Copy link
Author

I solved the issue by setting a breakpoint in the internal lib and looking at the actual error there. My issue was that my certs were malformed due to a copy/paste issue, hopefully this approach can give you more insight into your issue.

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

2 participants