insomnia icon indicating copy to clipboard operation
insomnia copied to clipboard

[Bug] Request header reference variable resolves header multiple times

Open lauw opened this issue 4 years ago • 2 comments

Describe the bug When referencing a request header value which contains a generated value (for example, uuid) the result is that the uuid gets generated twice, instead of the retrieving the actual header value.

To Reproduce Steps to reproduce the behavior:

  1. Create a new request
  2. Add a header with a generated value (e.g. uuid)
  3. Add a header with a reference to that header (by name)
  4. See request timeline and view different uuid's being outputted.

Expected behavior I expected it to first resolve the referenced header, then use that value as the actual value, instead of resolving it multiple times.

Screenshots Screen Shot 2020-02-14 at 11 47 09 Screen Shot 2020-02-14 at 11 47 09 1

Desktop (please complete the following information):

  • OS: MacOs 10.15.1
  • Installation Method: downloaded from insomnia.rest
  • App Version 7.0.6 (7.0.6.3258)

Additional context This gave me quite a headache, I was generating a hash out of a uuid which I had to send as well as the uuid itself. I gave up a while ago but recently decided to give it another shot and found out that the issue was here instead of in the target api.

lauw avatar Feb 14 '20 09:02 lauw

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 31 '21 07:05 stale[bot]

Hi @lauw Have you tried this on our newest release, available here: https://github.com/Kong/insomnia/releases/tag/core%402022.5.0?

kreosus avatar Aug 09 '22 18:08 kreosus