Open goofy78270 opened 1 year ago
noticed after the most recent update, that my variables are not applying. Likewise doesn't seem to switch between environments.
Seeing the same issue on sub environment. After editing tag looking for a response body attribute, the live preview value is updated and correct. After closing the edit tag dialog, the changes seem to be reverted. I tried to add a simple static attribute {"test": "1"} to the same sub environment and it too was not persisted. I edited the base environment similarly with this static attribute and it was persisted.
Insomnia Version 2023.5.6 Operating System Version OS: Windows_NT x64 10.0.19045
Folder environments are not consistently applying changes. In about 1/10 of attempts it seemed to have persisted the changes at a later time. Smells like some fancy async persistence not working.
It is also not possible to remove folder environments already set. This means that it is not possible to use this tool for authenticated requests imported from Postman without changing variable names.
Bad timing to have such a show stopping bug right before the competition will perform a rug pull(Postman not having free collections anymore).
I am only able to save changes to environment variables by closing the edit window, then closing insomnia entirely, then starting it again.
Version: Insomnia 2023.5.7
Build date: 2023-08-30
OS: Linux x64 6.4.7-surface
Electron: 25.2.0
Node: 18.15.0
Node ABI: 116
V8: 11.4.183.23-electron.0
Architecture: x64
I have the same problem as @mikebridge
Version: Insomnia 2023.5.8
Build date: 9/7/2023
OS: Darwin arm64 22.6.0
Electron: 25.2.0
Node: 18.15.0
Node ABI: 116
V8: 11.4.183.23-electron.0
Architecture: arm64
I am also having this problem. Version: 2023.5.8 Build Date: 9/7/2023 OS: Windows_NT x64 10.0.22621 Electron: 25.2.0 Node: 18.15.0 Node ABI: 116 V8: 11.4.183.23-electron.0 Architecture: x64
Some here. I want to have a "Response => Body Attribute" in a sub environment. Edit Tag, click Done, Close results in the tag losing its configuration. Edit Tag, click Done, edit something else in the JSON, Close results in the tag being saved as well. I got the idea for this work-around in #2383.
Version: Insomnia 2023.3.0 Build date: 6/27/2023 OS: Linux x64 5.10.0-23-amd64 Electron: 22.3.11 Node: 16.17.1 V8: 10.8.168.25-electron.0 Architecture: x64
I'm using this old version because it's the last one that runs on Debian 11.
In my case I can't save env variables by pressing the Close
button, only thing which helps me is switching environment while env variables view is open. After switching and closing it works...
Experiencing the same problem. Base or sub environment variables doe not save as expected. This includes Edit Tags.
Same here
Version: Insomnia 2023.5.8
Build date: 8/09/2023
OS: Windows_NT x64 10.0.22621
Electron: 25.2.0
Node: 18.15.0
Node ABI: 116
V8: 11.4.183.23-electron.0
Architecture: x64
The problem seems to happen in a specific set-up where there are cross-dependencies between Base Environment and specific environments (i.e. Prod
), where queries (and other stuff) use env vars NOT defined in the Base Environment but only on the specific environments.
In this context, when editing Base Environment (from the Manage Environments window), the specific environment gets unselected. Closing Manage Environments window, triggers your queries (or your active query) to fetch (lookup) the env vars (used for example in the url
), which obviously errors and unexpectedly prevents Insomnia from saving your changes (possible bug
).
(suggested minimal recreation further down)
I would dare to say that to work-around the problem:
Close
now, if you got env-vars used in queries that are not in the Base Environment, you will lose your changes, because of the error that looks-up through cross-dependencies.Close
. If there were NO errors coming from your change (no red references within your env vars), you should get your changes SAVEd (or at least, that's what I see).host
env var){
"end_point": "apiv3"
}
{
"host": "https://prod.tld/_.end_point"
}
Now you build a GET
query called List Users where the url is: _.host/users
. This ensures there's a dependency on an env var NOT present in Basic Environment (but only in PROD
).
PROD
, next click cogwheel to Manage Environmentsend_point
a var called response
that retrieves from some other's query resultClose
, make sure your new var doesn't show in red.Close
url
in redAfter lots of frustration trying to get my environments to look as I wanted to (a mix of my envs and folder envs) I noticed that apparently this must be getting cached somewhere if I do edits to my envs and then I re-open them just to check the previous updates I did I was not seeing them, yet if after I updated them I closed the app then open the app again and then see the environments they are properly updated, this is nonetheless quite an annoying and unexpected behavior yet I also don't expect folks to be modifying their envs that often so hopefully this helps others to get over this and it also helps devs to resolve this sooner
This is super annoying and basic. The only way I've found to save changes to environment variables is by closing the app right after applying changes and when I reopen it they're there. Anyone from Insomnia reading this?
Update: I seems like this issue got fixed on one of the recent updates? I can now modify env variables without having to restart the app each time etc...
Not me, the save has not been done. If we follow the same scenario (or other described) even if i restart the app, no save. Sometimes, it saves variable when i try many times but it seems working randomly.
as a workaround I found that after editing a "smart variables" (one that comes from another request) I edit/create a "dummy" variable with a constant value.
Expected Behavior
Looking to have the UI save updates made in the environment variable setups
Actual Behavior
Recently, we have been facing issues where updates to our environment variables, either manually entered values or path values of responses, are not saved after update and exit. I have read about the previous issues around pasting values, but this is simply updating text and saving, that is not working.
Reproduction Steps
Access an existing environment variable using built-in tools, such as cookie lookup, or response -> body attribute Update the lookup value Close Update screen Close Manage Environments screen Re-open Manage Environments screen Re-open Environment contain previous variable (should be same as previous - since env was not changed) Re-open built-in tool variable settings Verify change (in this case, update was not kept)
Is there an existing issue for this?
Additional Information
Would be happy to share screen in a review session if desired.
We do have 40+ environments setup with values set in our Base Environment as well as test specific folders, so unsure if the count of env variables could contribute to the issue.
Insomnia Version
2023.4.0
What operating system are you using?
macOS
Operating System Version
Build date: 7/4/2023 OS: Darwin x64 22.6.0 Electron: 23.3.9 Node: 18.12.1 V8: 11.0.226.20-electron.0 Architecture: x64
Installation method
Download from Insomnia
Last Known Working Insomnia version
No response