Cookie jar cached when chaining
- Dominant language
- TypeScript
- Stars
- 40k
- Forks
- 2.4k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 61
Description
### Is there an existing issue for this?
- [X] I have searched the [issue tracker](https://www.github.com/Kong/insomnia/issues) for a bug that matches the one I want to file, without success.
### Insomnia Version
2021.5.3
### What operating system are you using?
Windows
### Operating System Version
Windows 10 Pro Version 20H2
### Installation method
Exe
### Last Known Working Insomnia version
_No response_
### Expected Behavior
1. Response-dependent template tags are evaluated.
2. Decision to make preceding request is made.
3. Cookie jar updated as needed.
4. Dependent request succeeds.
### Actual Behavior
Dependent request always fails.
### Reproduction Steps
1. Open [gist](https://gist.github.com/cskwrd/3511d99f436fd099e02df11cd949cbdb).
2. Downloads files.
3. Execute [`build-run.sh`](https://gist.github.com/cskwrd/3511d99f436fd099e02df11cd949cbdb#file-build-run-sh).
4. Import [`insomnia_stale_cookie_bug.json`](https://gist.github.com/cskwrd/3511d99f436fd099e02df11cd949cbdb#file-insomnia_stale_cookie_bug-json) collection into Insomnia.
5. Send `Check Sum (Cookie Jar)` between 1 and _a lot_ of times.
6. Experience pain and sadness.
7. Send `Check Sum (Force New Cookie)` between 1 and _a lot_ of times.
8. Experience pleasure and happiness.
### Additional Information
_No response_
Contributor guide
Research direction
Start with the linked gist, run build-run.sh, and import insomnia_stale_cookie_bug.json into Insomnia. Reproduce the behavior by sending Check Sum (Cookie Jar) and compare it with Check Sum (Force New Cookie); done means the dependent request succeeds after the cookie jar is updated.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100