Mock server ignoring query params when hit form outside insomnia app
- Dominant language
- TypeScript
- Stars
- 40k
- Forks
- 2.4k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 61
Description
### Expected Behavior
Adding an endpoint with different query parameters should work like a new route with new response.
Example :
/testqueryparams/?param=value1
/testqueryparams/?param=value2
/testqueryparams/?param=value3
https://mock-bd96858b411549428dc6830faafc8124.mock.insomnia.run/testqueryparams/?param=value1
https://mock-bd96858b411549428dc6830faafc8124.mock.insomnia.run/testqueryparams/?param=value2
https://mock-bd96858b411549428dc6830faafc8124.mock.insomnia.run/testqueryparams/?param=value3
### Actual Behavior
All the three routes as listed above are returning the same response when hit from a browser/postman.
While from inside insomnia, they give different responses.
### Reproduction Steps
1. Create a new mock server
2. Make 3 GET routes with different query parameters and different responses.
3. "Test" it inside insomnia - you will get the correct responses.
4. Make the same requests via browser - you will get the same response across all the three routes (I have seen that its the response which is last "tested" inside the insomnia app)
### Is there an existing issue for this?
- [x] I have searched the [issue tracker](https://www.github.com/Kong/insomnia/issues) for this problem.
### Which sync method do you use?
- [ ] Git sync.
- [x] Insomnia Cloud sync.
- [ ] Local only
### Additional Information
_No response_
### Insomnia Version
11.5.0
### What operating system are you using?
Windows
### Operating System Version
Windows 11 Pro, 24H2, Build - 26100.4946
### Installation method
Download from insomnia.rest
### Last Known Working Insomnia version
_No response_
Contributor guide
Research direction
Start by reproducing the three listed mock URLs from a browser or Postman and compare them with the same requests sent inside Insomnia. Trace the mock server's route matching and query-parameter handling from those requests. Done means external requests with different query values return their corresponding configured responses.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100