Cannot import OpenAPI spec from URL
Open
Nobody has claimed this yet.
B-bug
S-unverified
- Dominant language
- TypeScript
- Stars
- 40k
- Forks
- 2.4k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 61
Description
Expected Behavior
Importing https://developers.fio.cz/v3/api-docs-production.json should succeed.
Actual Behavior
The following error is displayed instead:
TypeError: Failed to fetch at file:///C:/Users/jako/AppData/Local/insomnia/app-9.3.3/resources/app.asar/mainWindow-DiEbH_aZ.js:1300:1707 at xSe (file:///C:/Users/jako/AppData/Local/insomnia/app-9.3.3/resources/app.asar/mainWindow-DiEbH_aZ.js:134:11346) at Module.l (file:///C:/Users/jako/AppData/Local/insomnia/app-9.3.3/resources/app.asar/import-CHi2A4P6.js:1:438) at async file:///C:/Users/jako/AppData/Local/insomnia/app-9.3.3/resources/app.asar/mainWindow-DiEbH_aZ.js:56:4454 at async Qye (file:///C:/Users/jako/AppData/Local/insomnia/app-9.3.3/resources/app.asar/mainWindow-DiEbH_aZ.js:56:4904) at async Promise.all (index 2) at async Jye (file:///C:/Users/jako/AppData/Local/insomnia/app-9.3.3/resources/app.asar/mainWindow-DiEbH_aZ.js:56:3552) at async nt (file:///C:/Users/jako/AppData/Local/insomnia/app-9.3.3/resources/app.asar/mainWindow-DiEbH_aZ.js:55:26806) at async et (file:///C:/Users/jako/AppData/Local/insomnia/app-9.3.3/resources/app.asar/mainWindow-DiEbH_aZ.js:55:23473)
Reproduction Steps
- Go to workspace
- Click
Create>Import>Url - Type
https://developers.fio.cz/v3/api-docs-production.jsonintoUrlinput box. - Click
Scanbutton
Is there an existing issue for this?
- I have searched the issue tracker for this problem.
Additional Information
If I first download the spec and import as file it succeed but without any collection.
Insomnia Version
9.3.3
What operating system are you using?
Windows
Operating System Version
10.0.19045.4780
Installation method
winget
Last Known Working Insomnia version
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure through Create > Import > Url using the listed OpenAPI URL on Windows, then compare it with importing the downloaded file. Start by tracing the URL import and Scan flow around the reported Failed to fetch error. Done means the URL import succeeds and produces the expected collection rather than only importing an unpopulated file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- openapi, typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100