Kong / Kong/insomnia

Cannot save an environment variable using a query from the response

Open
#7,133 5 comments 0 reactions 0 assignees View on GitHub
B-bug S-unverified
Dominant language
TypeScript
Stars
40k
Forks
2.4k
Avg merge
2d 13h
Merged PRs (30d)
61

Description

### Expected Behavior

I can define a variable using a JSONPath query, but its definition is lost after closing the window

![image](https://github.com/Kong/insomnia/assets/8013436/8efcf8d5-1721-43c0-9449-155b88114a9d)

![image](https://github.com/Kong/insomnia/assets/8013436/f0644b4a-4edb-44b9-b274-29575b2d635e)

### Actual Behavior

I cannot use the variables because its definition is lost

![image](https://github.com/Kong/insomnia/assets/8013436/f2eb325c-b805-4671-988e-dddbc4151e06)

![image](https://github.com/Kong/insomnia/assets/8013436/130e65a3-2480-46ea-97f4-6f790ac91136)

### Reproduction Steps

_No response_

### Is there an existing issue for this?

- [X] I have searched the [issue tracker](https://www.github.com/Kong/insomnia/issues) for this problem.

### Additional Information

Version: Insomnia 2023.5.8
Build date: 9/7/2023
OS: Windows_NT x64 10.0.22631
Electron: 25.2.0
Node: 18.15.0
Node ABI: 116
V8: 11.4.183.23-electron.0
Architecture: x64

### Insomnia Version

2023.5.8

### What operating system are you using?

Windows

### Operating System Version

Windows 11

### Installation method

download from insomnia website

### Last Known Working Insomnia version

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported JSONPath environment-variable workflow in Insomnia 2023.5.8: define a variable from a response, close the window, and reopen it. Done means the definition persists and the variable remains usable; no source files or tests are identified in the issue, so locating the relevant environment-variable persistence code and adding regression coverage will require investigation.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.