nightingale-rest-api-client icon indicating copy to clipboard operation
nightingale-rest-api-client copied to clipboard

Feature Request - Setting to turn off Auto-Preview of API Responses

Open AaronJWhite opened this issue 2 years ago • 3 comments

One API endpoint I use returns a large XML file that is about 1GB in size. Using the "Send and Download" button I am able to save the API response as an XML file properly, but Nightingale freezes and then eventually crashes because it tries to load the large XML file in the preview pane. The error the client shows on crash is always "Exception of type 'System.OutofMemoryException' was thrown."

  • I would like an option in the settings that allows me to stop Nightingale from auto previewing responses.
  • As an alternate solution there could be a second "Send and Download" button that explicitly does not preview. Maybe call it "Send and Download Only" or "Download Without Preview".

AaronJWhite avatar Jun 16 '22 21:06 AaronJWhite

Does this Send and download button not work? image

dpaulino avatar Jun 17 '22 00:06 dpaulino

“Send and Download” works, but the client crashes after I save the file. I believe Nightingale crashes because it is trying to load the large response into memory so it can show the data in the client.

What I’m suggesting is a way to “send and download” without loading the data preview in the client. The response is just too big and I only need the file.

AaronJWhite avatar Jun 17 '22 17:06 AaronJWhite

ah gotcha, makes sense!

dpaulino avatar Jun 17 '22 17:06 dpaulino