[GH-ISSUE #3796] [bug]: "Error while importing: format not recognized" when OpenApi json file #1328

Closed
opened 2026-03-16 19:50:52 +03:00 by kerem · 23 comments
Owner

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?

  • I have searched the existing issues

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:

  1. Import the file to Postman.
  2. Export from Postman.
  3. Import Postman collection to Hoppscotch.

Steps to reproduce

  1. Export OpenApi json document from application I work on.
  2. Click on Import/Export icon.
  3. Click on CollectionsImport from OpenAPIImport from file (Import from URL doesn't work too).
  4. Dialog windows pops up with Error while importing: format not recognized.

Environment

Production

Version

Cloud

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? - [X] I have searched the existing issues ### 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: 1. Import the file to Postman. 2. Export from Postman. 3. Import Postman collection to Hoppscotch. ### Steps to reproduce 0. Export OpenApi json document from application I work on. 1. Click on Import/Export icon. 2. Click on `Collections` → `Import from OpenAPI` → `Import from file` (`Import from URL` doesn't work too). 3. Dialog windows pops up with `Error while importing: format not recognized`. ### Environment Production ### Version Cloud
kerem 2026-03-16 19:50:52 +03:00
Author
Owner

@amra commented on GitHub (Feb 1, 2024):

Used OpenAPI json file: openapi.zip

<!-- gh-comment-id:1921137591 --> @amra commented on GitHub (Feb 1, 2024): Used OpenAPI json file: [openapi.zip](https://github.com/hoppscotch/hoppscotch/files/14124723/openapi.zip)
Author
Owner

@UrbanMarco commented on GitHub (Feb 7, 2024):

Can confirm I have the same issue on 23.12.3-2

<!-- gh-comment-id:1932434578 --> @UrbanMarco commented on GitHub (Feb 7, 2024): Can confirm I have the same issue on 23.12.3-2
Author
Owner

@jarzebowsky commented on GitHub (Feb 13, 2024):

Same problem happened to me. Any update on this one?

<!-- gh-comment-id:1940337914 --> @jarzebowsky commented on GitHub (Feb 13, 2024): Same problem happened to me. Any update on this one?
Author
Owner

@mc-paula commented on GitHub (Feb 13, 2024):

Try validation your Config on this site: https://editor.swagger.io/
It helped me.

<!-- gh-comment-id:1941968698 --> @mc-paula commented on GitHub (Feb 13, 2024): Try validation your Config on this site: https://editor.swagger.io/ It helped me.
Author
Owner

@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.

<!-- gh-comment-id:1979660251 --> @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.
Author
Owner

@lin-mt commented on GitHub (Mar 12, 2024):

same issue

<!-- gh-comment-id:1989814306 --> @lin-mt commented on GitHub (Mar 12, 2024): same issue
Author
Owner

@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

<!-- gh-comment-id:1991814876 --> @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
Author
Owner

@shibilpk commented on GitHub (Mar 23, 2024):

I can't import from the swagger URL too. can you please fix this issue?

<!-- gh-comment-id:2016356651 --> @shibilpk commented on GitHub (Mar 23, 2024): I can't import from the swagger URL too. can you please fix this issue?
Author
Owner

@marksie1988 commented on GitHub (Apr 18, 2024):

also having same issue

<!-- gh-comment-id:2065283228 --> @marksie1988 commented on GitHub (Apr 18, 2024): also having same issue
Author
Owner

@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).

<!-- gh-comment-id:2088999483 --> @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).
Author
Owner

@niefy commented on GitHub (May 9, 2024):

also having same issue

<!-- gh-comment-id:2101812247 --> @niefy commented on GitHub (May 9, 2024): also having same issue
Author
Owner

@doublefix commented on GitHub (May 24, 2024):

Same issue

<!-- gh-comment-id:2128507541 --> @doublefix commented on GitHub (May 24, 2024): Same issue
Author
Owner

@Atantares commented on GitHub (Jun 15, 2024):

Same issue. Have tried OpeAPI 3.0.0
And Postman use the same file without issues

<!-- gh-comment-id:2169301237 --> @Atantares commented on GitHub (Jun 15, 2024): Same issue. Have tried OpeAPI 3.0.0 And Postman use the same file without issues
Author
Owner

@Mr-Jdd commented on GitHub (Aug 26, 2024):

Same issue

<!-- gh-comment-id:2309879013 --> @Mr-Jdd commented on GitHub (Aug 26, 2024): Same issue
Author
Owner

@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.

<!-- gh-comment-id:2341960475 --> @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.
Author
Owner

@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?

<!-- gh-comment-id:2375118471 --> @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?
Author
Owner

@guilherme9718 commented on GitHub (Oct 29, 2024):

Same here

<!-- gh-comment-id:2444699857 --> @guilherme9718 commented on GitHub (Oct 29, 2024): Same here
Author
Owner

@ianmuhia commented on GitHub (Dec 1, 2024):

same here

<!-- gh-comment-id:2510241854 --> @ianmuhia commented on GitHub (Dec 1, 2024): same here
Author
Owner

@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.

<!-- gh-comment-id:2511911698 --> @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.
Author
Owner

@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!

<!-- gh-comment-id:2850060738 --> @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!
Author
Owner

@aladin-bilalagic commented on GitHub (May 5, 2025):

It works now for me.

<!-- gh-comment-id:2850138118 --> @aladin-bilalagic commented on GitHub (May 5, 2025): It works now for me.
Author
Owner

@anwarulislam commented on GitHub (May 14, 2025):

Thanks for confirming @aladin-bilalagic!

<!-- gh-comment-id:2880014190 --> @anwarulislam commented on GitHub (May 14, 2025): Thanks for confirming @aladin-bilalagic!
Author
Owner

@tzezar commented on GitHub (Sep 2, 2025):

same issue

<!-- gh-comment-id:3246253359 --> @tzezar commented on GitHub (Sep 2, 2025): same issue
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1328
No description provided.