-
Notifications
You must be signed in to change notification settings - Fork 475
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
Redirects in infinite loop if a body parser is not set up for express #128
Comments
Can you submit a PR with the proposed documentation change? Thanks! |
I seem to be having this issue, but i'm using the node package body-parser, what body parser did you end up using to resolve this issue? |
I feel like adding the body-parser middleware has caused functionality in Rocky to break. When trying to reverse-proxy connections after ensuring authentication, the middleware fails with: TypeError: Invalid non-string/buffer chunk The body seems to just have a "{}" in it, and it doesn't seem to know how to proxy the request. |
I also had the same issue. Adding the const bodyParser = require('body-parser');
app.use(bodyParser.urlencoded({ extended: false })); |
Wasted days chasing this infinite loop issue. Many thanks to OP for creating this issue. There is no mention of it in documentation. 😞 |
Spent a couple hours this morning setting this up on a new app, and encountered the same problem. It would be nice to have this in the documentation. |
This is closed, but I have spend too much time to find out the problem is in body-parser. |
@DORRITO Please submit a doc-patch for the Express 5 example syntax. |
another victim who wastes days here. Thanks for sharing this and saving my life @jrop |
Minor, but should be documented: when defining the callback route:
There needs to be middleware that supports body parsing, otherwise (in my case) it starts redirecting between my IdP and my app indefinitely.
The text was updated successfully, but these errors were encountered: