Kong / Kong/insomnia

Request showing 200 good when local server was off http://127.0.0.1:8000

Open
#8,135 1 comment 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

should get an Error: Couldn't connect to server

### Actual Behavior

When send request it gave a 200 with the data of the last successful request that happened even though it should be a error cant connect to server.
I confirmed i didn't have the server open by sending a post request with different data which said was a success then get the info which did not show the updated value because it was actually just an error but insomnia reported it as a 200 with the past data.

### Reproduction Steps

I'm not able to reproduce but this is what led to it.
Server stopped on Friday
Insomnia left on until Monday
pushed commit from insomnia default git system
Monday tried to send request which gave 200 even though server was off
Restarted insomnia 2 times
bug still happened
start the sever then everything back to working

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

_No response_

### Insomnia Version

v10.1.1

### 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 request sequence against http://127.0.0.1:8000 with the server stopped, including the POST followed by GET after leaving Insomnia open. Compare the displayed response with the expected connection error and determine whether the behavior persists after restarting Insomnia; done means a stopped server is not reported as a successful 200 response.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.