Kong / Kong/insomnia

Cannot import OpenAPI spec from URL

Open
#7,885 8 comments 1 reaction 0 assignees View on GitHub

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
  1. Go to workspace
  2. Click Create > Import > Url
  3. Type https://developers.fio.cz/v3/api-docs-production.json into Url input box.
  4. Click Scan button
Is there an existing issue for this?
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.