Kong / Kong/insomnia

Cannot import simple exported collection

Open
#5,980 14 comments 0 reactions 0 assignees View on GitHub
B-bug S-unverified
Dominant language
TypeScript
Stars
40k
Forks
2.4k
Avg merge
2d 13h
Merged PRs (30d)
61

Description

### Expected Behavior

I can import a simple exported collection into version 2023.2.2.

### Actual Behavior

The import fails and just shows the message "The provided document does not match any of the registered formats."

### Reproduction Steps

1. Create a new collection.
2. Create a new simple request.
3. Click on collection name at the top.
4. Click on "Import/Export".
5. Click on "Export data".
6. Choose to export only the collection.
7. Export everything as Insomnia V4.
8. Goto projects.
9. Click "Create" -> "Import" and choose file.
10. Select file to import.
11. After import, the collection is empty with the warning message shown in "Actual behavior".

### Is there an existing issue for this?

- [X] I have searched the [issue tracker](https://www.github.com/Kong/insomnia/issues) for this problem.

### Additional Information

It seems like Insomnia tries to import the collection as a document, because after importing a new document (instead of collection) is added to the project.

Import works fine with version 2023.1.0.

### Insomnia Version

2023.2.2

### What operating system are you using?

Windows

### Operating System Version

Windows 11 Enterprise 22H2

### Installation method

Download from insomnia.rest

### Last Known Working Insomnia version

2023.1.0

Contributor guide

Open the contributing guide

Research direction

Reproduce the Import/Export flow using the listed steps on Windows, comparing Insomnia 2023.2.2 with the last known working 2023.1.0. Trace why an exported Insomnia V4 collection is imported as a document and ends up empty; done means the collection imports with its request and without the registered-format warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.