ArchGPT / insomnium

Insomnium is a fast local API testing tool that is privacy-focused and 100% local. For testing GraphQL, REST, WebSockets and gRPC. This is a fork of Kong/insomnia
MIT License
3.3k stars 123 forks source link

Application not responding after cancelling a request #129

Open drash-course opened 6 months ago

drash-course commented 6 months ago

Expected Behavior

When you make a request with a DNS that is slow to resolve / does not resolve, clicking on "Cancel Request" should cancel the request.

Actual Behavior

Clicking on "Cancel Request" makes the application not respond.

Reproduction Steps

  1. Change your DNS settings: set a random IP address for the DNS server => This should cause DNS requests to take a long time and eventually fail
  2. Open Insomnium and make any GET request (e.g. GET google.com/)
  3. Cancel the request
  4. It locks up

Is there an existing issue for this?

Additional Information

No response

Insomnium Version

Version 0.2.3

What operating system are you using?

macOS

Operating System Version

Sonoma 14.3

Installation method

downloaded .dmg from GitHub releases

Here is a screenshot of the issue

Screenshot 2024-01-09 at 13 39 34

drash-course commented 6 months ago

Love your app BTW, it's the perfect Insomnia / Postman replacement !

archywillhe commented 5 months ago

oh man this is really weird; need to investigate this more ..probably something to do with failing to catch the exception in the original fetch function

and thanks!