Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
amra opened this issue Feb 1, 2024 · 12 comments
Open
1 task done
Labels
bug Something isn't working need testing Needs to be tested before merging onto production

Comments

@amra
Copy link

amra commented Feb 1, 2024

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

@amra amra added bug Something isn't working need testing Needs to be tested before merging onto production labels Feb 1, 2024
@amra
Copy link
Author

amra commented Feb 1, 2024

Used OpenAPI json file: openapi.zip

@UrbanMarco
Copy link

Can confirm I have the same issue on 23.12.3-2

@Jarzebowsky
Copy link

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

@mc-paula
Copy link

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

@Fesely
Copy link

Fesely commented 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
Copy link

lin-mt commented Mar 12, 2024

same issue

@UrbanMarco
Copy link

@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
Copy link

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

@marksie1988
Copy link

also having same issue

@setu4993
Copy link

setu4993 commented 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
Copy link

niefy commented May 9, 2024

also having same issue

@modcoco
Copy link

modcoco commented May 24, 2024

Same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need testing Needs to be tested before merging onto production
Projects
None yet
Development

No branches or pull requests