Kong / Kong/insomnia

Invalid JSON Breaks Environment Editor 2021

Open
#4,242 1 comment 0 reactions 0 assignees View on GitHub
B-bug S-verified
Dominant language
TypeScript
Stars
40k
Forks
2.4k
Avg merge
2d 13h
Merged PRs (30d)
61

Description

### Expected Behavior

Be able to switch to another environment even if the current one has invalid JSON.

### Actual Behavior

Environment does not switch. Only when the JSON error is resolved, does the environment switch when clicking on it.

### Reproduction Steps

1. Create more than one sub-environment
1. Enter invalid JSON
1. Try to switch to another environment

### 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

It seems like this bug was previously reported in #249 and resolved in #257, but unfortunately it seems to have returned.

### Insomnia Version

2021.6.0

### What operating system are you using?

Windows

### Operating System Version

Windows 10 Home version 20H2 build 19042.1348

### Installation method

Downloaded from https://insomnia.rest/download

### Last Known Working Insomnia version

_No response_

Contributor guide

Open the contributing guide

Research direction

Reproduce the problem in Insomnia 2021.6.0 on Windows by creating multiple sub-environments, entering invalid JSON, and trying to switch environments. Trace the environment-switch behavior from that reproduction; done means switching succeeds even while the current environment contains invalid JSON, with the existing JSON error still visible.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.