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.84k stars 1.97k forks source link

All Saved Requests lost #7699

Closed bschnitz closed 4 months ago

bschnitz commented 4 months ago

Expected Behavior

After opening Insomnia all Request show up.

Actual Behavior

After opening, Insomnia requests to login using one of several methods. Since I only want to work locally I choose "Use the local Scratchpad". This is empty.

Reproduction Steps

No response

Is there an existing issue for this?

Additional Information

No response

Insomnia Version

9.3.1

What operating system are you using?

Other Linux

Operating System Version

5.15.161-1-MANJARO

Installation method

pacman

Last Known Working Insomnia version

No response

opalenet-adrien commented 4 months ago

I'm just encountering the same issue after an auto-update to the 9.3.1. All my professional requests are lost. I also work locally, on Pop!_OS 22.04, with the Flatpak installation.

bschnitz commented 4 months ago

@opalenet-adrien It seems like Insomnia changed it's path a bit. Fortunately I found an export button somewhere, with which I was able to export the old request data. After that, it can be imported to an alternative client (like e.g. https://github.com/ArchGPT/insomnium).

opalenet-adrien commented 4 months ago

@bschnitz through the export feature in "preferences" menu, that shows me empty data. In downgrading to a previous version, all the collections and requests returned, so I tried to do the exports but the app is buggy (only one collection export worked, now the app shuts down each time I try to export the others...). Thank you for the alternative, I'm gonna try it :+1:

bschnitz commented 4 months ago

@opalenet-adrien There are many alternatives. But insomnia and insomnium seem to offer many auth types out of the box, where other alternatives are lacking implementation. I think in the future I will move to httpie.

opalenet-adrien commented 4 months ago

On the version 9.3.1, I found my old collection here (see the screenshot). But we have to create an organization (and an account) to be able to retrieve our own data. And the "export all data (19 files)" that I assume containing my data doesn't work: it asks for a folder then confirms that all data are successfully exported but the folder remains empty... So this isn't possible to work locally unless scraping all data... Thanks to Insomnia! image

So, @bschnitz thanks again for the alternatives. After all these years, it's time to move on!

bschnitz commented 4 months ago

@opalenet-adrien Ouch, I feel for You. I had more Luck ...

subnetmarco commented 4 months ago

@bschnitz from what version did you update from?

All the projects, collections and other data is available both locally or in the cloud while logged in. The Scratch Pad allows to use Insomnia without an account and local-only for people that need a "visual curl". The collection management is available after logging in.

This is Scratch Pad:

Screenshot 2024-07-11 at 9 48 12 AM

This is the view after logging in:

Screenshot 2024-07-11 at 9 48 48 AM

After logging in, you can choose which projects are cloud, local or choose a mix of both based on your use-case. For example in the following screenshot the "Hobby" project is 100% local, while the "ACME Cloud" project is using Cloud Sync:

Screenshot 2024-07-11 at 9 51 16 AM

subnetmarco commented 4 months ago

So this isn't possible to work locally unless scraping all data...

@opalenet-adrien It is possible to work locally and data is not being "scraped" if you choose to keep you 100% local storage. Having an account does not determine where your data lives, as described in my comment above.

Even when using Cloud Sync, if your have E2EE enabled, the data is end-to-end encrypted and it is not possible for anyone but you to decrypt it.

bschnitz commented 4 months ago

@subnetmarco Hi, thank You for your reply. I prefer not to be logged in. Also I cannot tell You the version I had before 9.3.1. I found a solution, so everything is all right for me. I hope you can help @opalenet-adrien though.

subnetmarco commented 4 months ago

@bschnitz 👍

@opalenet-adrien you can export the data by going to Scratch Pad, and from Scratch Pad you can open the "Preferences" and see the data to export.

There is a bug that I already planned to release in the next minor: the "Data" section of the "Preferences" dialog doesn't load properly if it's being opened from the login dialog. Opening "Preferences" from the Scratch Pad seems to be working instead.

This is most likely a regression introduced in 9.3.2 when we worked on making the proxy settings more identifiable in the login dialog. Already fixed in https://github.com/Kong/insomnia/pull/7702.

opalenet-adrien commented 4 months ago

@subnetmarco thank you for your reply. As @bschnitz, I prefer not to be logged in. So, I just want to get my data even if they're not organized as collection anymore. But I don't understand why a solid, smooth migration process hasn't been done between the two versions. I waste my work time since yesterday trying to recover them.

Anyway, about the "Preferences" from the Scratch Pad screen, this doesn't work too. Like explained in my previous comment. Here a screencast. Screencast 2024-07-11 11:56:35.webm

subnetmarco commented 4 months ago

@opalenet-adrien thanks for the screencast, let us look into this. I cannot replicate on MacOS but perhaps it's a problem specific to Linux.

MarcGoekce commented 3 months ago

@subnetmarco thank you for your reply. As @bschnitz, I prefer not to be logged in. So, I just want to get my data even if they're not organized as collection anymore. But I don't understand why a solid, smooth migration process hasn't been done between the two versions. I waste my work time since yesterday trying to recover them.

Anyway, about the "Preferences" from the Scratch Pad screen, this doesn't work too. Like explained in my previous comment. Here a screencast. Screencast 2024-07-11 11:56:35.webm

Same here. Guess this is the end of another great tool, gone to misery and greed,,,

subnetmarco commented 3 months ago

Same here. Guess this is the end of another great tool, gone to misery and greed

@MarcGoekce how many contributions to Insomnia have you done over the years? Can't do nothing and expect everything.