-
Notifications
You must be signed in to change notification settings - Fork 32
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 (302) seem to be swallowed in 0.8.0 #47
Comments
@julianrubisch I've been trying to reproduce this problem but so far I've been unable to. I consistently get the expected 302 from redirects after upgrading an app to Kamal 2.2.0/Kamal Proxy 0.8.0. Are you able to reproduce this in a freshly deployed app, or is the behaviour specific to this particular app? Also is there anything else in your setup that could be involved here, like additional proxies or load balancers? Do you see the problematic 200 response if you directly |
I will try to come up with an MVCE. (which is a bit hard to do as it comes to deployment tools) It is weird, I admit as much. Furthermore, it is because the environment is as bare bones as it can be (single in house server in a SMB, no load balancers, proxies or anything, I think this should rule out configuration errors on my part as much as possible. That said, I haven't tried |
curl + kamal-proxy logs with Kamal 2.2.0:
curl + kamal-proxy logs with Kamal 2.1.2:
what stands out is that the |
Thanks, yes that's helpful! It does seem like something is flushing the headers too soon. I'll investigate this further and let you know what I find. |
Seeing the same here after upgrading from kamal 1.x - also a single server very basic setup. Let me know if I can contribute with any details. |
I have a fix for this now. Will publish a new release shortly. Thanks for reporting! |
Thanks for the fast turnaround! |
I've released 0.8.1 with the fix (the fix is in eaa84d3). We'll get a corresponding Kamal release out now. |
Kamal PR: basecamp/kamal#1086 |
@julianrubisch @jeppeliisberg a new Kamal release is now available with the fix (2.2.1). If you have a chance, could you let me know if that has resolved the problem for you? Thanks! 🙏 |
looking good on my part 👏 |
Great, thanks for confirming @julianrubisch! |
I just upgraded an application to Kamal 2.2 (hence kamal-proxy 0.8.0) and observed some strange behavior concerning redirects:
After doing
kamal proxy reboot
, in both the kamal proxy as well as my application logs, I saw a 302 being rendered with the correctLocation
header.In the browser, however, a 200 landed, but the
Location
header was preserved. I double and triple checked by moving between kamal 2.1.2 and kamal 2.2.0 and repeatedly doingkamal proxy reboot
.Additional context: it's an in-house app, hence no SSL. my kamal proxy config looks like this:
The text was updated successfully, but these errors were encountered: