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

editor.swagger.io giving me a blank zip file #5208

Open
xavier-hernandez opened this issue Aug 6, 2024 · 3 comments
Open

editor.swagger.io giving me a blank zip file #5208

xavier-hernandez opened this issue Aug 6, 2024 · 3 comments

Comments

@xavier-hernandez
Copy link

  • OS: Windows 11
  • Browser: Chrome
  • Version: Version 127.0.6533.100 (Official Build) (64-bit)
  • Method of installation: editor.swagger.io
  • Swagger-Editor version:
  • Swagger/OpenAPI version: Swagger 2.0

Going to editor.swagger.io I load "Swagger Petstore 2.0" and try to generate server code (aspnetcore, or any other one) I get a corrupted file which appears to be empty. The file is about 520 bytes.

If I load Swagger Petstore - OpenAPI 3.0 the server code generation works.

@gosherlock
Copy link

Same issue here. When attempting to generate server code (any language), a 500 error is returned from generator.swagger.io/api/gen/download/<hash>. As a temporary workaround, I found that opening the download link in a new tab allows the download to work.

@ponelat
Copy link
Member

ponelat commented Nov 29, 2024

It's worth trying generator3.swagger.io or generator.swagger.io directly to see if there is an issue with the underlying Swagger Codegen. I would normally have though browser issue, but Chrome is supported so not sure.
Cany anyone else reproduce this with the standard Petstore example? Else we may need to close as an edge-case.

@xavier-hernandez
Copy link
Author

@ponelat this issue was back in August, after a couple of days it started working again. I tried to deploy my own docker container but the codegen wasn't working as well on that. Is codegen done somewhere else and not within the docker container? Is there a depency in the docker container causing the codegen not to work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants