insomnia icon indicating copy to clipboard operation
insomnia copied to clipboard

version 2023.2 Imports of request collection no longer work

Open MarekUrbanUnicorn opened this issue 1 year ago • 9 comments

Expected Behavior

import a file exported from insomnia as insomnia json v 4 containning request directory with three commands one of which has a tag Insomnia_2023-05-04.txt

expected bahavior is creation of request direcotry with the command and tag intact

Actual Behavior

upon importing whis file into insomnia v2023.2. a document is created instead name 'Untitled' image and the Tag becomes disconected image

also if insomnia already contains the apropriatly named request directory import will create duplicate requests. i think that both tag will point to same request.

Reproduction Steps

  1. export request directory with a tag
  2. import into insomnia
  3. request get duplicated
  4. delete the request directory
  5. import into insomnia
  6. Unnamed Document is created and tag is broken

Is there an existing issue for this?

Additional Information

No response

Insomnia Version

2023.2.

What operating system are you using?

Windows

Operating System Version

Edition Windows 10 Pro Version 22H2 Installed on ‎06/‎02/‎2023 OS build 19045.2846 Experience Windows Feature Experience Pack 120.2212.4190.0

Installation method

insomnia updated

Last Known Working Insomnia version

i think the previous version was fine but dont have the nuber on hand since the update

MarekUrbanUnicorn avatar May 04 '23 07:05 MarekUrbanUnicorn

Got the same issue as mentionned above

MysticFragilist avatar May 04 '23 21:05 MysticFragilist

Related to https://github.com/Kong/insomnia/issues/5930

juanjoms avatar May 04 '23 22:05 juanjoms

same here

itxtoledo avatar May 06 '23 00:05 itxtoledo

Related to #5930

It's not the same problem as this one. This problem occurs when importing a collection, for some reason in this latest version if you have a template that uses the response from another request everything will break

itxtoledo avatar May 06 '23 00:05 itxtoledo

+1 on this. We're finding request chaining is broken when importing a collection document.

In our case, we use one request to get a token, and then all subsequent requests retrieve the access token out of the first request's response body.

Recently this seems to have broken, with the request ID failing to match up. It looks like the request ID matches that in the JSON that was imported, so not sure why it's broken.

I've tried "fixing" the reference to the first request, re-exporting, then re-importing, but the collection will be back in a broken state.

Broken reference: image

The document that was imported, showing the correct ID: image

smacktoid avatar Jun 02 '23 14:06 smacktoid

I would like to add that importing a Collection is imported as a Document instead, which is weird. There is no way to import a Collection, unless you create one first manually and import your data in there. However, you will lose all environments, so yeah import does seem to be very broken.

ademlabs avatar Jun 12 '23 13:06 ademlabs

I get the same behavior. For 2023.2, all requests are given a new request id, even the import file contains ids. The solution for me was to downgrade to 2023.1, import the collection then upgrade to 2023.2. This should be a stable workaround.

emedbo avatar Jun 22 '23 11:06 emedbo

This is a PIA. I have to go into the insomnia.Workspace.db file to change the scope from design to collection to have it work as a collection.

jesseclm avatar Jun 28 '23 01:06 jesseclm

Synchronization plugin stop working as well, because of during the import it is always generating new ids for requests/groups )=

NickRimmer avatar Jun 28 '23 15:06 NickRimmer

I have a similar outcome in the newest version 2023.4.0. Chain requests do not work after import. It works on 2023.1, it does not work on any further version including newest beta version 2023.5

dyeeye avatar Aug 11 '23 11:08 dyeeye

same problem here, with the newest version :( chain requests don't work after import.

KarolinaKL88 avatar Aug 11 '23 13:08 KarolinaKL88

I also have problem with import

  1. If I imported collection that I previously exported for test purposes (and I have both original and imported collection inside Insomnia even for different projects) values are propagated (still request in GUI empty for imported collection) image
  2. If I remove original collection and I try to use imported one I receive error image

Looks like elements IDs are propagated between projects and if original collection is unavailable I receiving an error. Obviously same error if I import collection created by other developers.

wojowkik avatar Aug 11 '23 14:08 wojowkik

Same issue here with latest version.

necessarylion avatar Sep 11 '23 13:09 necessarylion

Me too. When I import the collection with tags anywhere else, even though the requests exist because they are imported at the same time, the references don't exist because the ids are new.

mehr-licht avatar Sep 25 '23 22:09 mehr-licht

Any new development here? Still not working in v8.3.0.

LuLeRoemer avatar Oct 19 '23 11:10 LuLeRoemer

Still not working in v8.4.0 :(

lucasvmx avatar Nov 25 '23 16:11 lucasvmx

Still not working in v8.4.5 :(

thiagomaia971 avatar Nov 27 '23 15:11 thiagomaia971

Closing as duplicate of https://github.com/Kong/insomnia/issues/5730

filfreire avatar Nov 27 '23 20:11 filfreire