Double backslash at end of Environment JSON key freezes entire app, corrupts collection
j1mmie opened this issue · comments
Expected Behavior
Double-backslash at end of environment JSON key should be valid
Actual Behavior
Double-backslash at end of environment JSON key freezes entire app and corrupts collection
Reproduction Steps
- Create a new "Request collection". Name it anything
- Click the cog icon near "Base environment"
- Enter the following JSON:
{
"What": "dafuq"
}
- Click after the letter t in What to move the cursor there. Type in
-\\
, resulting in the following JSON:
{
"What-\\": "dafuq"
}
Note that shortly after typing the two backslashes, the app will freeze
Is there an existing issue for this?
- I have searched the issue tracker for this problem.
Additional Information
Screencap: https://imgur.com/jD6c4S4
This corrupts the collection. Whenever the collection is loaded again, the app freezes. On macOS, the "unresponsive app" warning dialog shows.
Sometimes "\" alone will not freeze the app. Sometimes there must be a \ somewhere else in the string, or a - immediately before it. I'm not sure what other characters or patterns cause this.
One way to fix it is to manually edit insomnia.Environment.db
to remove the backslashes. Then the collection will load just fine
Insomnia Version
8.6.1
What operating system are you using?
macOS
Operating System Version
macOS Sonoma 14.2.1 (23C71)
Installation method
homebrew
Last Known Working Insomnia version
No response