mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #5189] [bug]: Unable to import any of Github OpenAPI spec #1979
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#1979
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Leon-Luu on GitHub (Jun 23, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5189
Originally assigned to: @anwarulislam on GitHub.
Is there an existing issue for this?
Platform
Web App
Browser
Chrome
Operating System
Windows
Bug Description
Hoppscotch doesn't seems to comply with all the OpenAPI spec when importing.
I had tried to import both JSON and YAML format from the Github OpenAPI description space (https://github.com/github/rest-api-description/tree/main/descriptions-next). When import any versions (3.0.X => 3.1.X) it will end up with a toast "Error while importing: format not recognized". Check the picture below
Tested on Hoppscotch.io version v2025.5.3
Deployment Type
Hoppscotch Cloud
Version
No response
@anwarulislam commented on GitHub (Jun 24, 2025):
Hi @Leon-Luu, thank you for bringing this to our attention!
By the way, I tried importing multiple files (JSON/YAML) on hoppscotch.io from there, and it worked perfectly without any error messages. Could you please send me the specific JSON/YAML that is causing the error?
@Leon-Luu commented on GitHub (Jun 25, 2025):
Hi @anwarulislam
Some examples:
https://github.com/github/rest-api-description/tree/main/descriptions-next/ghes-3.9 => https://raw.githubusercontent.com/github/rest-api-description/refs/heads/main/descriptions-next/ghes-3.9/ghes-3.9.yaml
https://raw.githubusercontent.com/github/rest-api-description/refs/heads/main/descriptions-next/ghes-3.9/ghes-3.9.json
https://github.com/github/rest-api-description/tree/main/descriptions-next/ghes-3.0 => https://raw.githubusercontent.com/github/rest-api-description/refs/heads/main/descriptions-next/ghes-3.0/ghes-3.0.yaml
https://raw.githubusercontent.com/github/rest-api-description/refs/heads/main/descriptions-next/ghes-3.0/ghes-3.0.json
@anwarulislam commented on GitHub (Jun 25, 2025):
@Leon-Luu I attempted to import them, and it is functioning correctly.
With URL
https://github.com/user-attachments/assets/a6424ac2-24fe-4074-b70f-0b31d9e07578
With File
https://github.com/user-attachments/assets/6a6dba81-d0dd-4588-9d0a-f64070efc631
@Leon-Luu commented on GitHub (Jun 25, 2025):
Hi @anwarulislam I just tested on Edge browser and it works correctly. The issue seems to be on Chrome specific only
@anwarulislam commented on GitHub (Jun 25, 2025):
Thank you for keeping us informed! I'm using a Chromium browser, and I also checked on Chrome. Everything is working perfectly for me on Chrome as well.
@Leon-Luu commented on GitHub (Jun 25, 2025):
@anwarulislam Check with Windows 11 + Chrome combo?
I am using Chrome Version 137.0.7151.120 (Official Build) (64-bit)
@FreeSoftwareServers commented on GitHub (Dec 29, 2025):
I faced this same issue btw, on both chrome and edge (Win10). I was able to upload to self hosted. This might be due to a timeout or something? It shows "Completed" w/ all the correct number but I get an error about format not recognized.... I was going to use the cloud version likely due to my own issues w/ setup --> https://github.com/hoppscotch/hoppscotch/issues/5737 but might just chose self hosted if I can't get OpenAPI collections imported into web as that was my main goal when migrating away from Insomnia (they work in Insomnia, but caused crash/lag)