Kong / insomnia

The open-source, cross-platform API client for GraphQL, REST, WebSockets, SSE and gRPC. With Cloud, Local and Git storage.
https://insomnia.rest
Apache License 2.0
34.32k stars 1.93k forks source link

Collapse-all json keybind in response preview stalls program on very large json response #7825

Open nbird11 opened 1 month ago

nbird11 commented 1 month ago

Expected Behavior

I expected to see the collapsed json after a bit of time waiting, as the response is very large (200,000 lines).

Actual Behavior

The program stalls and is unresponsive even 5 mins after trying the keybind to collapse-all.

Reproduction Steps

The endpoint I hit is privileged, but any uri that returns a response of type application/json that is ~200,000 lines long and contains many different objects and lists should produce the same result.

  1. GET /uri/that/produces/large/json
  2. In Preview, select Visual Preview or Source Code
  3. Press keybind for collapse-all ( Ctrl+Shft+- ; Cmd+Shft+- )

Is there an existing issue for this?

Additional Information

This alert message shows up almost immediately.

Screenshot 2024-08-09 at 10 57 48 AM

Clicking Reload does not change the stalled state of the program and another alert usually appears soon after. Clicking Cancel and then closing and reopening the program returns it to normal.

Insomnia Version

9.3.3

What operating system are you using?

macOS

Operating System Version

macOS Sonoma Version 14.6

Installation method

Downloaded from insomnia.rest

Last Known Working Insomnia version

No response

notjaywu commented 1 month ago

Similar issue: https://github.com/Kong/insomnia/issues/793