Repository navigation
Revert "Save cookies on redirect response" - #6413
Conversation
This reverts commit 1b9ea47.
WalkthroughRemoved cookie persistence logic from HTTP error response handling in both the CLI and Electron network request runners. Cookies are no longer saved when error responses are received; normal success responses continue to preserve cookies as before. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@sanish-bruno can issue #5658 be reopened? I have looked into this a bit further based on the feedback you gave me. Thanks for that, it was very helpful! It seems that the problem occurs when followredirect = false (which internally means setMaxRedirects(0)). When the server responds with redirect and set-cookie headers, the request is reported as an error, and the cookies are not stored. When running a single request from electron, the cookies ARE stored after the redirect, but not when running from the CLI or running a folder from electron. So there is a difference in behavior. The core issue I think is that followredirect is not implemented correctly. Currently when followdirect = false, the result is reported as an error which is not true
I believe the request should be reported as an success when followredirect = false, and the cookies should be stored. Do you agree with my assessment, and if so, how do you suggest we get this fixed? Thank you for your help |
|
@JeroenVinke Thanks for looking further into the issue, I guess we will have to re-open the issue. We are occupied with v3 release. If you strongly feel that 'follow redirects' is the core issue, You can create an Issue/PR. we will look into the issue! But do expect a delay! We understand that the bug is very annoying. We are extremely sorry that we are unable to prioritise right now. But I do believe, we can get this merged post the holidays! Thanks for understanding! |
|
No trouble if you don't have time, but please don't close the issue #5658 because it's not done |

Reverts #6094 in favour of #5387
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.