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.92k stars 1.98k forks source link

Infinite loading on very large json replies. (2 Million characters) #6904

Open HacktheTime opened 11 months ago

HacktheTime commented 11 months ago

Expected Behavior

Loading after a few Seconds.

Actual Behavior

Just doesn't load. Firefox can in a couple of seconds even when saying to unfold everything. Only some parts of the program freeze.

Reproduction Steps

request from https://api.hypixel.net/v2/resources/skyblock/items

Is there an existing issue for this?

Additional Information

Version: Insomnia 8.4.5 Build date: 23.11.2023 OS: Linux x64 6.1.0-13-amd64 Electron: 27.0.3 Node: 18.17.1 Node ABI: 118 V8: 11.8.172.16-electron.0 Architecture: x64

and

Version: Insomnia 2023.5.8 Build date: 7.9.2023 OS: Linux x64 6.1.0-13-amd64 Electron: 25.2.0 Node: 18.15.0 Node ABI: 116 V8: 11.4.183.23-electron.0 Architecture: x64

Insomnia Version

2023.5.8 & 8.4.5

What operating system are you using?

Other Linux

Operating System Version

Debian Linux Bookworm x64 6.1.0-13-amd64

Installation method

Flatpak / Snap

Last Known Working Insomnia version

-

Lucasark commented 11 months ago

IDK if this a good idea, not saying about insomnia, only just use of JSON or it in a application. Maybe considering use of querys, or something else to not loading 2MKK chars, it is more huge than 1 single file of 2MB.

HacktheTime commented 11 months ago

IDK if this a good idea, not saying about insomnia, only just use of JSON or it in a application. Maybe considering use of querys, or something else to not loading 2MKK chars, it is more huge than 1 single file of 2MB.

The problem with it is that the program gets stuck when you request it. Thats especially the case in the spec area. I am not a developer at Hypixel and thereby can not resolve this issue by making the jsons smaller. In their case there are reasons why its a single json list.

Karthik7406 commented 4 months ago

I think this issue seems to be resolved in the latest version of Insomnia. image