mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #3796] [bug]: "Error while importing: format not recognized" when OpenApi json file #1328
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#1328
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 @amra on GitHub (Feb 1, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3796
Is there an existing issue for this?
Current behavior
I tried to import OpenAPI document and windows pops up with
Error while importing: format not recognized.The document is a valid openapi json file.
There's not much other information to collect.
Workaround:
Steps to reproduce
Collections→Import from OpenAPI→Import from file(Import from URLdoesn't work too).Error while importing: format not recognized.Environment
Production
Version
Cloud
@amra commented on GitHub (Feb 1, 2024):
Used OpenAPI json file: openapi.zip
@UrbanMarco commented on GitHub (Feb 7, 2024):
Can confirm I have the same issue on 23.12.3-2
@jarzebowsky commented on GitHub (Feb 13, 2024):
Same problem happened to me. Any update on this one?
@mc-paula commented on GitHub (Feb 13, 2024):
Try validation your Config on this site: https://editor.swagger.io/
It helped me.
@v0v3s commented on GitHub (Mar 5, 2024):
Same thing for me with Atlassian Jira Software specification.
https://dac-static.atlassian.com/cloud/jira/platform/swagger-v3.v3.json
@mc-paula tried the editor, no issues with the specification.
@lin-mt commented on GitHub (Mar 12, 2024):
same issue
@UrbanMarco commented on GitHub (Mar 12, 2024):
@mc-paula tried the editor, had some issues, fixed them. Didn't work
Used the editor to convert the spec to v3. Didn't work either.
I'd say import is broken
@shibilpk commented on GitHub (Mar 23, 2024):
I can't import from the swagger URL too. can you please fix this issue?
@marksie1988 commented on GitHub (Apr 18, 2024):
also having same issue
@setu4993 commented on GitHub (May 1, 2024):
Interestingly, I just hit this when trying to load a collection from a locally running Swagger (FastAPI) server but for a remote instance it loads fine.
I'm using the desktop app on MacOS (ARM) v24.3.2-1 (20240430.153528).
@niefy commented on GitHub (May 9, 2024):
also having same issue
@doublefix commented on GitHub (May 24, 2024):
Same issue
@Atantares commented on GitHub (Jun 15, 2024):
Same issue. Have tried OpeAPI 3.0.0
And Postman use the same file without issues
@Mr-Jdd commented on GitHub (Aug 26, 2024):
Same issue
@mzealey commented on GitHub (Sep 10, 2024):
Importing from a URL in the browser returned a CORS issue, but downloading and uploading directly was fine.
Perhaps a better error message in this case such as 'Issue downloading the file (CORS?)' would be better.
@voslucas commented on GitHub (Sep 25, 2024):
I have the same issue! swagger.json file, generated by .NET, openapi 3.0.1
But this is an important feature.. To be able to import these definitions.
I tried the swagger editor link (see above) to look for errors: no errors (unexpected, because it's generated). I've used download /upload instead of url. The browser also 'freezes' and display's timeout message.. Is there any more 'detailed' logging available?
@guilherme9718 commented on GitHub (Oct 29, 2024):
Same here
@ianmuhia commented on GitHub (Dec 1, 2024):
same here
@liyasthomas commented on GitHub (Dec 2, 2024):
Thank you for reporting this! We're looking into the issue and will provide updates soon. We appreciate your patience and understanding.
@anwarulislam commented on GitHub (May 5, 2025):
@amra It looks like this issue has been resolved in the latest version of Hoppscotch. Could you please try importing the mentioned JSON again? Let us know if you encounter any further issues. Thanks!
@aladin-bilalagic commented on GitHub (May 5, 2025):
It works now for me.
@anwarulislam commented on GitHub (May 14, 2025):
Thanks for confirming @aladin-bilalagic!
@tzezar commented on GitHub (Sep 2, 2025):
same issue