Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version 2023.2 Imports of request collection no longer work #5942

Closed
1 task done
MarekUrbanUnicorn opened this issue May 4, 2023 · 18 comments · May be fixed by #6521
Closed
1 task done

version 2023.2 Imports of request collection no longer work #5942

MarekUrbanUnicorn opened this issue May 4, 2023 · 18 comments · May be fixed by #6521
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer

Comments

@MarekUrbanUnicorn
Copy link

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 MarekUrbanUnicorn added B-bug Bug: general classification S-unverified Status: Unverified by maintainer labels May 4, 2023
@MysticFragilist
Copy link

Got the same issue as mentionned above

@juanjoms
Copy link

juanjoms commented May 4, 2023

Related to #5930

@itxtoledo
Copy link

same here

@itxtoledo
Copy link

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

@smacktoid
Copy link

+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

@ademlabs
Copy link

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.

@emedbo
Copy link

emedbo commented Jun 22, 2023

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.

@jesseclm
Copy link

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.

@NickRimmer
Copy link

NickRimmer commented Jun 28, 2023

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

@dyeeye
Copy link

dyeeye commented Aug 11, 2023

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

@KarolinaKL88
Copy link

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

@wojowkik
Copy link

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.

@necessarylion
Copy link

Same issue here with latest version.

@mehr-licht
Copy link

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.

schminkel pushed a commit to schminkel/insomnia_2023.5.8 that referenced this issue Oct 4, 2023
@LuLeRoemer
Copy link

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

@lucasvmx
Copy link

Still not working in v8.4.0 :(

@thiagomaia971
Copy link

Still not working in v8.4.5 :(

@filfreire
Copy link
Member

Closing as duplicate of #5730

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer
Projects
None yet